From 62b302bc761c7ffef9965c548f0ccfe432e1624d Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sun, 5 Feb 2023 20:34:15 -0800 Subject: [PATCH] Excluding more files --- gtsam/CMakeLists.txt | 9 +++++++++ tests/CMakeLists.txt | 1 + 2 files changed, 10 insertions(+) diff --git a/gtsam/CMakeLists.txt b/gtsam/CMakeLists.txt index 46a45875f..bfc846af3 100644 --- a/gtsam/CMakeLists.txt +++ b/gtsam/CMakeLists.txt @@ -48,10 +48,19 @@ else() set(excluded_sources ${excluded_sources} "${CMAKE_CURRENT_SOURCE_DIR}/geometry/Rot3Q.cpp") 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} + "${CMAKE_CURRENT_SOURCE_DIR}/gtsam/base/serializationTestHelpers.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} "${CMAKE_CURRENT_SOURCE_DIR}/nonlinear/GncOptimizer.h" + "${CMAKE_CURRENT_SOURCE_DIR}/inference/graph.h" + "${CMAKE_CURRENT_SOURCE_DIR}/inference/graph-inl.h" ) endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index bf922057b..53183bc49 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -9,6 +9,7 @@ endif() if (NOT GTSAM_USE_BOOST_FEATURES) list(APPEND tests_exclude "testGncOptimizer.cpp") + list(APPEND tests_exclude "testGraph.cpp") endif() if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)