set (excluded_examples elaboratePoint2KalmanFilter.cpp ) # if GTSAM_ENABLE_BOOST_SERIALIZATION is not set then SolverComparer.cpp will not compile if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION) list (APPEND excluded_examples SolverComparer.cpp ) endif() # 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 CombinedImuFactorsExample.run ImuFactorsExample.run ShonanAveragingCLI.cpp SolverComparer.cpp ) endif() gtsamAddExamplesGlob("*.cpp" "${excluded_examples}" "gtsam;gtsam_unstable;${Boost_PROGRAM_OPTIONS_LIBRARY}")