From 41f532bea6446b4dec43cc1233ff5d96fb2e937d Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Sun, 4 Dec 2016 16:57:29 -0800 Subject: [PATCH] cmake: Build p3dxml. --- panda/CMakeLists.txt | 3 ++- panda/src/dxml/CMakeLists.txt | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 panda/src/dxml/CMakeLists.txt diff --git a/panda/CMakeLists.txt b/panda/CMakeLists.txt index 26531e4661..f860fe194f 100644 --- a/panda/CMakeLists.txt +++ b/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) diff --git a/panda/src/dxml/CMakeLists.txt b/panda/src/dxml/CMakeLists.txt new file mode 100644 index 0000000000..6a9007bf67 --- /dev/null +++ b/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)