Switching cmake macros to more flexible ones - now allows for manual exclusion of tests
parent
ba8fb0ba27
commit
b2bf03d21f
|
@ -7,9 +7,15 @@ set(base_local_libs
|
||||||
base
|
base
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Files to exclude from compilation of tests and timing scripts
|
||||||
|
set(base_excluded_files
|
||||||
|
# "${CMAKE_CURRENT_SOURCE_DIR}/tests/testTypedDiscreteFactor.cpp" # Example of excluding a test
|
||||||
|
"" # Add to this list, with full path, to exclude
|
||||||
|
)
|
||||||
|
|
||||||
# Build tests
|
# Build tests
|
||||||
if (GTSAM_BUILD_TESTS)
|
if (GTSAM_BUILD_TESTS)
|
||||||
gtsam_add_tests(base "${base_local_libs}")
|
gtsam_add_subdir_tests(base "${base_local_libs}" "gtsam-static" "${base_excluded_files}")
|
||||||
endif(GTSAM_BUILD_TESTS)
|
endif(GTSAM_BUILD_TESTS)
|
||||||
|
|
||||||
# Build timing scripts
|
# Build timing scripts
|
||||||
|
|
|
@ -8,9 +8,15 @@ set(geometry_local_libs
|
||||||
geometry
|
geometry
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Files to exclude from compilation of tests and timing scripts
|
||||||
|
set(geometry_excluded_files
|
||||||
|
# "${CMAKE_CURRENT_SOURCE_DIR}/tests/testTypedDiscreteFactor.cpp" # Example of excluding a test
|
||||||
|
"" # Add to this list, with full path, to exclude
|
||||||
|
)
|
||||||
|
|
||||||
# Build tests
|
# Build tests
|
||||||
if (GTSAM_BUILD_TESTS)
|
if (GTSAM_BUILD_TESTS)
|
||||||
gtsam_add_tests(geometry "${geometry_local_libs}")
|
gtsam_add_subdir_tests(geometry "${geometry_local_libs}" "gtsam-static" "${geometry_excluded_files}")
|
||||||
endif(GTSAM_BUILD_TESTS)
|
endif(GTSAM_BUILD_TESTS)
|
||||||
|
|
||||||
# Build timing scripts
|
# Build timing scripts
|
||||||
|
|
|
@ -10,9 +10,15 @@ set(inference_local_libs
|
||||||
ccolamd
|
ccolamd
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Files to exclude from compilation of tests and timing scripts
|
||||||
|
set(inference_excluded_files
|
||||||
|
# "${CMAKE_CURRENT_SOURCE_DIR}/tests/testTypedDiscreteFactor.cpp" # Example of excluding a test
|
||||||
|
"" # Add to this list, with full path, to exclude
|
||||||
|
)
|
||||||
|
|
||||||
# Build tests
|
# Build tests
|
||||||
if (GTSAM_BUILD_TESTS)
|
if (GTSAM_BUILD_TESTS)
|
||||||
gtsam_add_tests(inference "${inference_local_libs}")
|
gtsam_add_subdir_tests(inference "${inference_local_libs}" "gtsam-static" "${inference_excluded_files}")
|
||||||
endif(GTSAM_BUILD_TESTS)
|
endif(GTSAM_BUILD_TESTS)
|
||||||
|
|
||||||
# Build timing scripts
|
# Build timing scripts
|
||||||
|
|
|
@ -11,9 +11,15 @@ set(linear_local_libs
|
||||||
ccolamd
|
ccolamd
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Files to exclude from compilation of tests and timing scripts
|
||||||
|
set(linear_excluded_files
|
||||||
|
# "${CMAKE_CURRENT_SOURCE_DIR}/tests/testTypedDiscreteFactor.cpp" # Example of excluding a test
|
||||||
|
"" # Add to this list, with full path, to exclude
|
||||||
|
)
|
||||||
|
|
||||||
# Build tests
|
# Build tests
|
||||||
if (GTSAM_BUILD_TESTS)
|
if (GTSAM_BUILD_TESTS)
|
||||||
gtsam_add_tests(linear "${linear_local_libs}")
|
gtsam_add_subdir_tests(linear "${linear_local_libs}" "gtsam-static" "${linear_excluded_files}")
|
||||||
endif(GTSAM_BUILD_TESTS)
|
endif(GTSAM_BUILD_TESTS)
|
||||||
|
|
||||||
# Build timing scripts
|
# Build timing scripts
|
||||||
|
|
|
@ -12,9 +12,15 @@ set(nonlinear_local_libs
|
||||||
ccolamd
|
ccolamd
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Files to exclude from compilation of tests and timing scripts
|
||||||
|
set(nonlinear_excluded_files
|
||||||
|
# "${CMAKE_CURRENT_SOURCE_DIR}/tests/testTypedDiscreteFactor.cpp" # Example of excluding a test
|
||||||
|
"" # Add to this list, with full path, to exclude
|
||||||
|
)
|
||||||
|
|
||||||
# Build tests
|
# Build tests
|
||||||
if (GTSAM_BUILD_TESTS)
|
if (GTSAM_BUILD_TESTS)
|
||||||
gtsam_add_tests(nonlinear "${nonlinear_local_libs}")
|
gtsam_add_subdir_tests(nonlinear "${nonlinear_local_libs}" "gtsam-static" "${nonlinear_excluded_files}")
|
||||||
endif(GTSAM_BUILD_TESTS)
|
endif(GTSAM_BUILD_TESTS)
|
||||||
|
|
||||||
# Build timing scripts
|
# Build timing scripts
|
||||||
|
|
|
@ -13,9 +13,15 @@ set(slam_local_libs
|
||||||
ccolamd
|
ccolamd
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Files to exclude from compilation of tests and timing scripts
|
||||||
|
set(slam_excluded_files
|
||||||
|
# "${CMAKE_CURRENT_SOURCE_DIR}/tests/testTypedDiscreteFactor.cpp" # Example of excluding a test
|
||||||
|
"" # Add to this list, with full path, to exclude
|
||||||
|
)
|
||||||
|
|
||||||
# Build tests
|
# Build tests
|
||||||
if (GTSAM_BUILD_TESTS)
|
if (GTSAM_BUILD_TESTS)
|
||||||
gtsam_add_tests(slam "${slam_local_libs}")
|
gtsam_add_subdir_tests(slam "${slam_local_libs}" "gtsam-static" "${slam_excluded_files}")
|
||||||
endif(GTSAM_BUILD_TESTS)
|
endif(GTSAM_BUILD_TESTS)
|
||||||
|
|
||||||
# Build timing scripts
|
# Build timing scripts
|
||||||
|
|
Loading…
Reference in New Issue