Browse Source

Add CMakeLists for panda/cull

kestred 12 years ago
parent
commit
fd9ce53bc9
2 changed files with 31 additions and 0 deletions
  1. 1 0
      panda/CMakeLists.txt
  2. 30 0
      panda/src/cull/CMakeLists.txt

+ 1 - 0
panda/CMakeLists.txt

@@ -17,6 +17,7 @@ add_subdirectory(src/pnmimage)
 add_subdirectory(src/gobj)
 add_subdirectory(src/pgraph)
 
+add_subdirectory(src/cull)
 #add_subdirectory(src/display)
 #add_subdirectory(src/framework)
 #add_subdirectory(src/testbed)

+ 30 - 0
panda/src/cull/CMakeLists.txt

@@ -0,0 +1,30 @@
+set(P3CULL_HEADERS
+  binCullHandler.h binCullHandler.I
+  config_cull.h
+  cullBinBackToFront.h cullBinBackToFront.I
+  cullBinFixed.h cullBinFixed.I
+  cullBinFrontToBack.h cullBinFrontToBack.I
+  cullBinStateSorted.h cullBinStateSorted.I
+  cullBinUnsorted.h cullBinUnsorted.I
+  drawCullHandler.h drawCullHandler.I
+)
+
+set(P3CULL_SOURCES
+  binCullHandler.cxx
+  config_cull.cxx
+  cullBinBackToFront.cxx
+  cullBinFixed.cxx
+  cullBinFrontToBack.cxx
+  cullBinStateSorted.cxx
+  cullBinUnsorted.cxx
+  drawCullHandler.cxx
+)
+
+if(HAVE_EIGEN)
+  include_directories(${EIGEN3_INCLUDE_DIR})
+endif()
+
+composite_sources(p3cull P3CULL_SOURCES)
+add_library(p3cull ${P3CULL_HEADERS} ${P3CULL_SOURCES})
+target_link_libraries(p3cull p3pgraph)
+target_interrogate(p3cull ALL)