Browse Source

cmake: Build p3dxml.

Sam Edwards 9 years ago
parent
commit
41f532bea6
2 changed files with 20 additions and 1 deletions
  1. 2 1
      panda/CMakeLists.txt
  2. 18 0
      panda/src/dxml/CMakeLists.txt

+ 2 - 1
panda/CMakeLists.txt

@@ -22,6 +22,7 @@ endif()
 add_subdirectory(src/configfiles)
 add_subdirectory(src/pandabase)
 add_subdirectory(src/express)
+add_subdirectory(src/dxml)
 add_subdirectory(src/pipeline)
 add_subdirectory(src/downloader)
 add_subdirectory(src/downloadertools)
@@ -84,7 +85,7 @@ add_subdirectory(metalibs/pandaphysics)
 
 # Now add the Python modules:
 set(CORE_MODULE_COMPONENTS
-    p3chan p3char p3collide p3cull p3device p3dgraph p3display p3downloader
+    p3chan p3char p3collide p3cull p3device p3dgraph p3display p3downloader p3dxml
     p3event p3express p3gobj p3grutil p3gsgbase p3linmath p3mathutil p3nativenet
     p3net p3movies p3parametrics p3pgraph p3pgraphnodes p3pgui p3pipeline
     p3pnmimage p3pstatclient p3putil p3recorder p3text p3tform)

+ 18 - 0
panda/src/dxml/CMakeLists.txt

@@ -0,0 +1,18 @@
+set(P3DXML_HEADERS
+  config_dxml.h
+  tinyxml.h
+)
+
+set(P3DXML_SOURCES
+  config_dxml.cxx
+  tinyxml.cpp
+  tinyxmlerror.cpp
+  tinyxmlparser.cpp
+)
+
+composite_sources(p3dxml P3DXML_SOURCES)
+add_library(p3dxml ${P3DXML_HEADERS} ${P3DXML_SOURCES})
+target_link_libraries(p3dxml p3express)
+target_interrogate(p3dxml ALL)
+
+install(TARGETS p3dxml DESTINATION lib)