29 lines
933 B
CMake
29 lines
933 B
CMake
# Install headers
|
|
file(GLOB base_headers "*.h")
|
|
install(FILES ${base_headers} DESTINATION include/gtsam/base)
|
|
|
|
# Components to link tests in this subfolder against
|
|
set(base_local_libs
|
|
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
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/tests/timeTest.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/tests/timeVirtual.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/tests/timeVirtual2.cpp"
|
|
# "" # Add to this list, with full path, to exclude
|
|
)
|
|
|
|
# Build tests
|
|
if (GTSAM_BUILD_TESTS)
|
|
gtsam_add_subdir_tests(base "${base_local_libs}" "gtsam-static" "${base_excluded_files}")
|
|
endif(GTSAM_BUILD_TESTS)
|
|
|
|
# Build timing scripts
|
|
if (GTSAM_BUILD_TIMING)
|
|
gtsam_add_subdir_timing(base "${base_local_libs}" "gtsam-static" "${base_excluded_files}")
|
|
endif(GTSAM_BUILD_TIMING)
|
|
|