diff --git a/gtsam/CMakeLists.txt b/gtsam/CMakeLists.txt index bfc846af3..a351d0d48 100644 --- a/gtsam/CMakeLists.txt +++ b/gtsam/CMakeLists.txt @@ -50,14 +50,15 @@ endif() # if GTSAM_ENABLE_BOOST_SERIALIZATION is not set, then we need to exclude the following: if(NOT GTSAM_ENABLE_BOOST_SERIALIZATION) - list (APPEND excluded_sources ${excluded_sources} + list (APPEND excluded_headers "${CMAKE_CURRENT_SOURCE_DIR}/gtsam/base/serializationTestHelpers.h" + "${CMAKE_CURRENT_SOURCE_DIR}/gtsam/base/serialization.h" ) endif() # if GTSAM_USE_BOOST_FEATURES is not set, then we need to exclude the following: if(NOT GTSAM_USE_BOOST_FEATURES) - list (APPEND excluded_sources ${excluded_sources} + list (APPEND excluded_sources "${CMAKE_CURRENT_SOURCE_DIR}/nonlinear/GncOptimizer.h" "${CMAKE_CURRENT_SOURCE_DIR}/inference/graph.h" "${CMAKE_CURRENT_SOURCE_DIR}/inference/graph-inl.h" diff --git a/gtsam_unstable/CMakeLists.txt b/gtsam_unstable/CMakeLists.txt index db7c4f89e..de59f547e 100644 --- a/gtsam_unstable/CMakeLists.txt +++ b/gtsam_unstable/CMakeLists.txt @@ -31,15 +31,17 @@ set (excluded_headers # "") # if GTSAM_USE_BOOST_FEATURES is not set, then we need to exclude the following: if(NOT GTSAM_USE_BOOST_FEATURES) - list (APPEND excluded_sources ${excluded_sources} + list (APPEND excluded_sources "${CMAKE_CURRENT_SOURCE_DIR}/linear/QPSParser.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/linear/QPSSolver.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/discrete/Scheduler.cpp" ) - list (APPEND excluded_headers ${excluded_headers} + list (APPEND excluded_headers "${CMAKE_CURRENT_SOURCE_DIR}/linear/QPSParser.h" "${CMAKE_CURRENT_SOURCE_DIR}/linear/QPSSolver.h" "${CMAKE_CURRENT_SOURCE_DIR}/discrete/Scheduler.h" + "${CMAKE_CURRENT_SOURCE_DIR}/parition/FindSeparator.h" + "${CMAKE_CURRENT_SOURCE_DIR}/parition/FindSeparator-inl.h" ) endif() diff --git a/gtsam_unstable/dynamics/tests/CMakeLists.txt b/gtsam_unstable/dynamics/tests/CMakeLists.txt index 493cef4fa..882d5f4e3 100644 --- a/gtsam_unstable/dynamics/tests/CMakeLists.txt +++ b/gtsam_unstable/dynamics/tests/CMakeLists.txt @@ -1 +1,7 @@ -gtsamAddTestsGlob(dynamics_unstable "test*.cpp" "" "gtsam_unstable") +set (excluded_tests "") + +# TODO(dellaert): these segfault, and are rather obsolete, so we stop compiling them: +list(APPEND excluded_tests "testIMUSystem.cpp" "testPoseRTV.cpp") + +# Build tests +gtsamAddTestsGlob(dynamics_unstable "test*.cpp" "${excluded_tests}" "gtsam_unstable") diff --git a/gtsam_unstable/partition/tests/CMakeLists.txt b/gtsam_unstable/partition/tests/CMakeLists.txt index d89a1fe98..0b918e497 100644 --- a/gtsam_unstable/partition/tests/CMakeLists.txt +++ b/gtsam_unstable/partition/tests/CMakeLists.txt @@ -1,2 +1,7 @@ set(ignore_test "testNestedDissection.cpp") + +if (NOT GTSAM_USE_BOOST_FEATURES) + list(APPEND ignore_test "testFindSeparator.cpp") +endif() + gtsamAddTestsGlob(partition "test*.cpp" "${ignore_test}" "gtsam_unstable;gtsam;metis-gtsam-if") diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 53183bc49..d7b68c4ec 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,23 +1,23 @@ # exclude certain files # note the source dir on each -set (tests_exclude "") +set (excluded_tests "") if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") # might not be best test - Richard & Jason & Frank # clang linker segfaults on large testSerializationSlam - list (APPEND tests_exclude "testSerializationSlam.cpp") + list (APPEND excluded_tests "testSerializationSlam.cpp") endif() if (NOT GTSAM_USE_BOOST_FEATURES) - list(APPEND tests_exclude "testGncOptimizer.cpp") - list(APPEND tests_exclude "testGraph.cpp") + list(APPEND excluded_tests "testGncOptimizer.cpp") + list(APPEND excluded_tests "testGraph.cpp") endif() if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION) - list(APPEND tests_exclude "testSerializationSLAM.cpp") + list(APPEND excluded_tests "testSerializationSLAM.cpp") endif() # Build tests -gtsamAddTestsGlob(tests "test*.cpp" "${tests_exclude}" "gtsam") +gtsamAddTestsGlob(tests "test*.cpp" "${excluded_tests}" "gtsam") if(MSVC) set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/testSerializationSlam.cpp"