cmake lists changes

release/4.3a0
kartik arcot 2023-01-18 13:27:10 -08:00 committed by Kartik Arcot
parent ded4600353
commit efacfb81a0
9 changed files with 82 additions and 12 deletions

View File

@ -1 +1,9 @@
gtsamAddTestsGlob(base "test*.cpp" "" "gtsam") # if GTSAM_ENABLE_BOOST_SERIALIZATION is OFF then exclude some tests
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
# create a semicolon seperated list of files to exclude
set(EXCLUDE_TESTS "testSerializationBase.cpp" "testStdOptionalSerialization.cpp")
else()
set(EXCLUDE_TESTS "")
endif()
gtsamAddTestsGlob(discrete "test*.cpp" "${EXCLUDE_TESTS}" "gtsam")

View File

@ -1 +1,9 @@
gtsamAddTestsGlob(discrete "test*.cpp" "" "gtsam") # if GTSAM_ENABLE_BOOST_SERIALIZATION is OFF then exclude some tests
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
# create a semicolon seperated list of files to exclude
set(EXCLUDE_TESTS "testSerializationDiscrete.cpp")
else()
set(EXCLUDE_TESTS "")
endif()
gtsamAddTestsGlob(discrete "test*.cpp" "${EXCLUDE_TESTS}" "gtsam")

View File

@ -1 +1,9 @@
gtsamAddTestsGlob(geometry "test*.cpp" "" "gtsam") # if GTSAM_ENABLE_BOOST_SERIALIZATION is OFF then exclude some tests
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
# create a semicolon seperated list of files to exclude
set(EXCLUDE_TESTS "testSerializationGeometry.cpp")
else()
set(EXCLUDE_TESTS "")
endif()
gtsamAddTestsGlob(discrete "test*.cpp" "${EXCLUDE_TESTS}" "gtsam")

View File

@ -1 +1,9 @@
gtsamAddTestsGlob(hybrid "test*.cpp" "" "gtsam") # if GTSAM_ENABLE_BOOST_SERIALIZATION is OFF then exclude some tests
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
# create a semicolon seperated list of files to exclude
set(EXCLUDE_TESTS "testSerializationHybrid.cpp")
else()
set(EXCLUDE_TESTS "")
endif()
gtsamAddTestsGlob(discrete "test*.cpp" "${EXCLUDE_TESTS}" "gtsam")

View File

@ -1,6 +1,15 @@
gtsamAddTestsGlob(linear "test*.cpp" "" "gtsam") # if GTSAM_ENABLE_BOOST_SERIALIZATION is OFF then exclude some tests
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
if(MSVC) # create a semicolon seperated list of files to exclude
set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/testSerializationLinear.cpp" set(EXCLUDE_TESTS "testSerializationLinear.cpp")
APPEND PROPERTY COMPILE_FLAGS "/bigobj") else()
set(EXCLUDE_TESTS "")
endif()
gtsamAddTestsGlob(linear "test*.cpp" "${EXCLUDE_TESTS}" "gtsam")
# Set properties to serialization target if Boost serialization is enabled and MSVC
if (GTSAM_ENABLE_BOOST_SERIALIZATION AND MSVC)
set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/testSerializationLinear.cpp"
APPEND PROPERTY COMPILE_FLAGS "/bigobj")
endif() endif()

View File

@ -24,4 +24,9 @@ else()
endif() endif()
endif() endif()
# if GTSAM_ENABLE_BOOST_SERIALIZATION is OFF then exclude some tests
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
list(APPEND tests_excluded testSerializationNavigation.cpp)
endif()
gtsamAddTestsGlob(navigation "test*.cpp" "${tests_excluded}" "${test_link_libraries}") gtsamAddTestsGlob(navigation "test*.cpp" "${tests_excluded}" "${test_link_libraries}")

View File

@ -1 +1,9 @@
gtsamAddTestsGlob(sam "test*.cpp" "" "gtsam") # if GTSAM_ENABLE_BOOST_SERIALIZATION is OFF then exclude some tests
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
# create a semicolon seperated list of files to exclude
set(EXCLUDE_TESTS "testSerializationSam.cpp")
else()
set(EXCLUDE_TESTS "")
endif()
gtsamAddTestsGlob(discrete "test*.cpp" "${EXCLUDE_TESTS}" "gtsam")

View File

@ -1 +1,9 @@
gtsamAddTestsGlob(slam "test*.cpp" "" "gtsam") # if GTSAM_ENABLE_BOOST_SERIALIZATION is OFF then exclude some tests
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
# create a semicolon seperated list of files to exclude
set(EXCLUDE_TESTS "testSerializationDatataset.cpp" "testSerializationInSlam.cpp")
else()
set(EXCLUDE_TESTS "")
endif()
gtsamAddTestsGlob(discrete "test*.cpp" "${EXCLUDE_TESTS}" "gtsam")

View File

@ -1 +1,9 @@
gtsamAddTestsGlob(symbolic "test*.cpp" "" "gtsam") # if GTSAM_ENABLE_BOOST_SERIALIZATION is OFF then exclude some tests
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
# create a semicolon seperated list of files to exclude
set(EXCLUDE_TESTS "testSerializationSymbolic.cpp")
else()
set(EXCLUDE_TESTS "")
endif()
gtsamAddTestsGlob(discrete "test*.cpp" "${EXCLUDE_TESTS}" "gtsam")