From a27475b9a6ef995e954b22f9e9b216c3867f348f Mon Sep 17 00:00:00 2001 From: kestred Date: Sun, 26 Jan 2014 11:22:18 -0700 Subject: [PATCH] Add CMakeLists.txt for panda/metalibs/panda --- panda/CMakeLists.txt | 2 +- panda/metalibs/panda/CMakeLists.txt | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 panda/metalibs/panda/CMakeLists.txt diff --git a/panda/CMakeLists.txt b/panda/CMakeLists.txt index 93d61fdd74..26f0ad576c 100644 --- a/panda/CMakeLists.txt +++ b/panda/CMakeLists.txt @@ -52,4 +52,4 @@ add_subdirectory(src/framework) #add_subdirectory(src/testbed) # Include panda metalibs -#add_subdirectory(metalibs/panda) +add_subdirectory(metalibs/panda) diff --git a/panda/metalibs/panda/CMakeLists.txt b/panda/metalibs/panda/CMakeLists.txt new file mode 100644 index 0000000000..e212a7e60e --- /dev/null +++ b/panda/metalibs/panda/CMakeLists.txt @@ -0,0 +1,12 @@ +set(PANDA_LINK_TARGETS p3pnmimagetypes p3device) + +if(LINK_IN_PHYSX) + add_definitions(-DBUILDING_PANDAPHYSX) + set(PANDA_LINK_TARGETS + ${PANDA_LINK_TARGETS} + p3physx + ) +endif() + +add_library(panda panda.cxx) +target_link_libraries(panda ${PANDA_LINK_TARGETS})