Changes in build scripts for more easily creating executables in projects
parent
2ba66eaef7
commit
9ba94e4d3c
|
@ -5,7 +5,8 @@ set(tests_local_libs
|
||||||
inference
|
inference
|
||||||
geometry
|
geometry
|
||||||
base
|
base
|
||||||
ccolamd)
|
ccolamd
|
||||||
|
CppUnitLite)
|
||||||
|
|
||||||
# exclude certain files
|
# exclude certain files
|
||||||
# note the source dir on each
|
# note the source dir on each
|
||||||
|
@ -22,7 +23,7 @@ if (GTSAM_BUILD_TESTS)
|
||||||
# Build grouped tests
|
# Build grouped tests
|
||||||
gtsam_add_grouped_scripts("tests" # Use subdirectory as group label
|
gtsam_add_grouped_scripts("tests" # Use subdirectory as group label
|
||||||
"test*.cpp" check "Test" # Standard for all tests
|
"test*.cpp" check "Test" # Standard for all tests
|
||||||
"${tests_local_libs}" "gtsam-static" "${tests_exclude}" # Pass in linking and exclusion lists
|
"${tests_local_libs}" "gtsam-static;CppUnitLite" "${tests_exclude}" # Pass in linking and exclusion lists
|
||||||
${is_test}) # Set all as tests
|
${is_test}) # Set all as tests
|
||||||
endif (GTSAM_BUILD_TESTS)
|
endif (GTSAM_BUILD_TESTS)
|
||||||
|
|
||||||
|
@ -35,6 +36,6 @@ if (GTSAM_BUILD_TIMING)
|
||||||
# Build grouped benchmarks
|
# Build grouped benchmarks
|
||||||
gtsam_add_grouped_scripts("tests" # Use subdirectory as group label
|
gtsam_add_grouped_scripts("tests" # Use subdirectory as group label
|
||||||
"time*.cpp" timing "Timing Benchmark" # Standard for all timing scripts
|
"time*.cpp" timing "Timing Benchmark" # Standard for all timing scripts
|
||||||
"${tests_local_libs}" "gtsam-static" "${tests_exclude}" # Pass in linking and exclusion lists
|
"${tests_local_libs}" "gtsam-static;CppUnitLite" "${tests_exclude}" # Pass in linking and exclusion lists
|
||||||
${is_test})
|
${is_test})
|
||||||
endif (GTSAM_BUILD_TIMING)
|
endif (GTSAM_BUILD_TIMING)
|
||||||
|
|
Loading…
Reference in New Issue