gtsam/tests/CMakeLists.txt

25 lines
717 B
CMake
Raw Normal View History

# exclude certain files
# note the source dir on each
2023-02-06 17:31:56 +08:00
set (excluded_tests "")
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") # might not be best test - Richard & Jason & Frank
2022-02-21 21:00:15 +08:00
# clang linker segfaults on large testSerializationSlam
2023-02-06 17:31:56 +08:00
list (APPEND excluded_tests "testSerializationSlam.cpp")
2013-05-21 06:23:04 +08:00
endif()
if (NOT GTSAM_USE_BOOST_FEATURES)
2023-02-06 17:31:56 +08:00
list(APPEND excluded_tests "testGraph.cpp")
endif()
2023-02-06 11:16:49 +08:00
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
list(APPEND excluded_tests "testSerializationSlam.cpp")
2023-02-06 11:16:49 +08:00
endif()
# Build tests
2023-02-06 17:31:56 +08:00
gtsamAddTestsGlob(tests "test*.cpp" "${excluded_tests}" "gtsam")
if(MSVC)
2022-02-21 21:00:15 +08:00
set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/testSerializationSlam.cpp"
APPEND PROPERTY COMPILE_FLAGS "/bigobj")
endif()