CMakeLists.txt 518 B

12345678910111213141516
  1. # exclude certain files
  2. # note the source dir on each
  3. set (tests_exclude "")
  4. if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") # might not be best test - Richard & Jason & Frank
  5. # clang linker segfaults on large testSerializationSLAM
  6. list (APPEND tests_exclude "testSerializationSLAM.cpp")
  7. endif()
  8. # Build tests
  9. gtsamAddTestsGlob(tests "test*.cpp" "${tests_exclude}" "gtsam")
  10. if(MSVC)
  11. set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/testSerializationSLAM.cpp"
  12. APPEND PROPERTY COMPILE_FLAGS "/bigobj")
  13. endif()