Added flag to control whether tests are built with the make all target
parent
00c09744e1
commit
99971df559
|
@ -71,6 +71,10 @@ endif(GTSAM_USE_QUATERNIONS)
|
||||||
# FIXME: can't add install dependencies, so libraries never get built
|
# FIXME: can't add install dependencies, so libraries never get built
|
||||||
#set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY TRUE)
|
#set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY TRUE)
|
||||||
|
|
||||||
|
# Alternative version to keep tests from building during make install
|
||||||
|
# Use the EXCLUDE_FROM_ALL property on test executables
|
||||||
|
option(GTSAM_ENABLE_INSTALL_TEST_FIX "Enable/Disable installation of wrap utility" ON)
|
||||||
|
|
||||||
# Pull in infrastructure
|
# Pull in infrastructure
|
||||||
if (GTSAM_BUILD_TESTS)
|
if (GTSAM_BUILD_TESTS)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
@ -139,6 +143,7 @@ print_config_flag(${GTSAM_BUILD_WRAP} "Build Wrap
|
||||||
print_config_flag(${GTSAM_BUILD_SHARED_LIBRARY} "Build shared GTSAM Library ")
|
print_config_flag(${GTSAM_BUILD_SHARED_LIBRARY} "Build shared GTSAM Library ")
|
||||||
print_config_flag(${GTSAM_BUILD_STATIC_LIBRARY} "Build static GTSAM Library ")
|
print_config_flag(${GTSAM_BUILD_STATIC_LIBRARY} "Build static GTSAM Library ")
|
||||||
print_config_flag(${GTSAM_BUILD_CONVENIENCE_LIBRARIES} "Build Convenience Libraries ")
|
print_config_flag(${GTSAM_BUILD_CONVENIENCE_LIBRARIES} "Build Convenience Libraries ")
|
||||||
|
print_config_flag(${GTSAM_ENABLE_INSTALL_TEST_FIX} "Tests excluded from all target ")
|
||||||
string(TOUPPER "${CMAKE_BUILD_TYPE}" cmake_build_type_toupper)
|
string(TOUPPER "${CMAKE_BUILD_TYPE}" cmake_build_type_toupper)
|
||||||
message(STATUS " Build type : ${CMAKE_BUILD_TYPE}")
|
message(STATUS " Build type : ${CMAKE_BUILD_TYPE}")
|
||||||
message(STATUS " C compilation flags : ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${cmake_build_type_toupper}}")
|
message(STATUS " C compilation flags : ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${cmake_build_type_toupper}}")
|
||||||
|
|
Loading…
Reference in New Issue