gtsam/examples/CMakeLists.txt

24 lines
671 B
CMake
Raw Normal View History

set (excluded_examples
elaboratePoint2KalmanFilter.cpp
)
2023-01-24 07:56:33 +08:00
# if GTSAM_ENABLE_BOOST_SERIALIZATION is not set then SolverComparer.cpp will not compile
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
list (APPEND excluded_examples
2023-01-24 07:56:33 +08:00
SolverComparer.cpp
)
endif()
2023-02-06 12:45:21 +08:00
# Add examples to exclude if GTSAM_USE_BOOST_FEATURES is not set
if (NOT GTSAM_USE_BOOST_FEATURES)
# add to excluded examples
list (APPEND excluded_examples
2023-02-06 12:45:21 +08:00
CombinedImuFactorsExample.run
ImuFactorsExample.run
ShonanAveragingCLI.cpp
SolverComparer.cpp
)
endif()
2023-01-24 07:16:14 +08:00
gtsamAddExamplesGlob("*.cpp" "${excluded_examples}" "gtsam;gtsam_unstable;${Boost_PROGRAM_OPTIONS_LIBRARY}")