From 5e2f3f777b918f37bef248e65b003a9a9da206bb Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Tue, 6 May 2014 21:04:18 -0600 Subject: [PATCH] CMake: Build bam2egg and egg2bam. --- pandatool/CMakeLists.txt | 3 +++ pandatool/src/bam/CMakeLists.txt | 16 ++++++++++++++++ pandatool/src/converter/CMakeLists.txt | 9 +++++++++ pandatool/src/eggbase/CMakeLists.txt | 19 +++++++++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 pandatool/src/bam/CMakeLists.txt create mode 100644 pandatool/src/converter/CMakeLists.txt create mode 100644 pandatool/src/eggbase/CMakeLists.txt diff --git a/pandatool/CMakeLists.txt b/pandatool/CMakeLists.txt index 9b90217e03..f89483ed3f 100644 --- a/pandatool/CMakeLists.txt +++ b/pandatool/CMakeLists.txt @@ -5,5 +5,8 @@ endif() # Include pandatool source directories add_subdirectory(src/pandatoolbase) add_subdirectory(src/progbase) +add_subdirectory(src/converter) +add_subdirectory(src/eggbase) +add_subdirectory(src/bam) add_subdirectory(src/pstatserver) add_subdirectory(src/gtk-stats) diff --git a/pandatool/src/bam/CMakeLists.txt b/pandatool/src/bam/CMakeLists.txt new file mode 100644 index 0000000000..be3299b0d2 --- /dev/null +++ b/pandatool/src/bam/CMakeLists.txt @@ -0,0 +1,16 @@ +add_executable(bam-info bamInfo.cxx bamInfo.h) +target_link_libraries(bam-info p3progbase p3pgraph p3pgraphnodes p3recorder p3pystub + p3display) # This is a HACK for now -- fix Interrogate +install(TARGETS bam-info DESTINATION bin) + +add_executable(egg2bam eggToBam.cxx eggToBam.h) +target_link_libraries(egg2bam p3eggbase p3progbase) +install(TARGETS egg2bam DESTINATION bin) + +add_executable(bam2egg bamToEgg.cxx bamToEgg.h) +target_link_libraries(bam2egg p3converter p3eggbase p3progbase) +install(TARGETS bam2egg DESTINATION bin) + +add_executable(pts2bam ptsToBam.cxx ptsToBam.h) +target_link_libraries(pts2bam p3progbase p3pgraph p3pgraphnodes p3egg2pg p3pystub) +install(TARGETS pts2bam DESTINATION bin) diff --git a/pandatool/src/converter/CMakeLists.txt b/pandatool/src/converter/CMakeLists.txt new file mode 100644 index 0000000000..3470760573 --- /dev/null +++ b/pandatool/src/converter/CMakeLists.txt @@ -0,0 +1,9 @@ +set(P3CONVERTER_HEADERS + somethingToEggConverter.I somethingToEggConverter.h + eggToSomethingConverter.I eggToSomethingConverter.h) + +set(P3CONVERTER_SOURCES + somethingToEggConverter.cxx eggToSomethingConverter.cxx) + +add_library(p3converter STATIC ${P3CONVERTER_HEADERS} ${P3CONVERTER_SOURCES}) +target_link_libraries(p3converter p3pandatoolbase p3egg2pg p3recorder p3pystub) diff --git a/pandatool/src/eggbase/CMakeLists.txt b/pandatool/src/eggbase/CMakeLists.txt new file mode 100644 index 0000000000..c3dda64cd3 --- /dev/null +++ b/pandatool/src/eggbase/CMakeLists.txt @@ -0,0 +1,19 @@ +set(P3EGGBASE_HEADERS + eggBase.h eggConverter.h eggFilter.h + eggMakeSomething.h + eggMultiBase.h eggMultiFilter.h + eggReader.h eggSingleBase.h + eggToSomething.h eggWriter.h + somethingToEgg.h) + +set(P3EGGBASE_SOURCES + eggBase.cxx eggConverter.cxx eggFilter.cxx + eggMakeSomething.cxx + eggMultiBase.cxx + eggMultiFilter.cxx eggReader.cxx eggSingleBase.cxx + eggToSomething.cxx + eggWriter.cxx somethingToEgg.cxx) + +composite_sources(p3eggbase P3EGGBASE_SOURCES) +add_library(p3eggbase STATIC ${P3EGGBASE_HEADERS} ${P3EGGBASE_SOURCES}) +target_link_libraries(p3eggbase p3progbase p3converter)