Add CMakeLists for panda/gsgbase

This commit is contained in:
kestred 2014-01-19 13:09:20 -07:00
parent 3d65bd49a7
commit 8e3c001f8a
2 changed files with 34 additions and 1 deletions

View File

@ -11,8 +11,9 @@ add_subdirectory(src/putil)
add_subdirectory(src/pstatclient)
add_subdirectory(src/linmath)
add_subdirectory(src/event)
add_subdirectory(src/mathutil)
add_subdirectory(src/gsgbase)
#add_subdirectory(src/gobj)
#add_subdirectory(src/pgraph)
#add_subdirectory(src/display)

View File

@ -0,0 +1,32 @@
set(P3GSGBASE_HEADERS
config_gsgbase.h
displayRegionBase.I displayRegionBase.h
graphicsOutputBase.I graphicsOutputBase.h
graphicsStateGuardianBase.h
)
set(P3GSGBASE_SOURCES
config_gsgbase.cxx
displayRegionBase.cxx
graphicsOutputBase.cxx
graphicsStateGuardianBase.cxx
)
if(HAVE_EIGEN)
include_directories(${EIGEN3_INCLUDE_DIR})
endif()
composite_sources(p3gsgbase P3GSGBASE_SOURCES)
add_library(p3gsgbase ${P3GSGBASE_HEADERS} ${P3GSGBASE_SOURCES})
target_link_libraries(p3gsgbase p3linmath)
target_interrogate(p3gsgbase ALL)
#begin test_bin_target
#define TARGET test_gsgbase
#define LOCAL_LIBS
# p3gsgbase
#define SOURCES
# test_gsgbase.cxx
#end test_bin_target