2012-02-12 06:38:53 +08:00
|
|
|
# exclude certain files
|
|
|
|
# note the source dir on each
|
2014-02-13 14:34:31 +08:00
|
|
|
set (tests_exclude "")
|
2012-02-12 06:38:53 +08:00
|
|
|
|
2015-01-16 22:33:02 +08:00
|
|
|
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
|
|
|
|
list (APPEND tests_exclude "testSerializationSlam.cpp")
|
2013-05-21 06:23:04 +08:00
|
|
|
endif()
|
|
|
|
|
2023-01-24 09:33:42 +08:00
|
|
|
if (NOT GTSAM_USE_BOOST_FEATURES)
|
|
|
|
list(APPEND tests_exclude "testGncOptimizer.cpp")
|
2023-02-06 12:34:15 +08:00
|
|
|
list(APPEND tests_exclude "testGraph.cpp")
|
2023-01-24 09:33:42 +08:00
|
|
|
endif()
|
|
|
|
|
2023-02-06 11:16:49 +08:00
|
|
|
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
|
|
|
|
list(APPEND tests_exclude "testSerializationSLAM.cpp")
|
|
|
|
endif()
|
|
|
|
|
2011-12-14 10:24:21 +08:00
|
|
|
# Build tests
|
2014-02-13 14:34:31 +08:00
|
|
|
gtsamAddTestsGlob(tests "test*.cpp" "${tests_exclude}" "gtsam")
|
2012-03-30 02:57:31 +08:00
|
|
|
|
2014-02-13 14:34:31 +08:00
|
|
|
if(MSVC)
|
2022-02-21 21:00:15 +08:00
|
|
|
set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/testSerializationSlam.cpp"
|
2014-02-13 14:34:31 +08:00
|
|
|
APPEND PROPERTY COMPILE_FLAGS "/bigobj")
|
|
|
|
endif()
|