diff --git a/panda/CMakeLists.txt b/panda/CMakeLists.txt index c33f82f597..67590532d1 100644 --- a/panda/CMakeLists.txt +++ b/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) diff --git a/panda/src/cull/CMakeLists.txt b/panda/src/cull/CMakeLists.txt new file mode 100644 index 0000000000..a51d1dfd0d --- /dev/null +++ b/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)