minor formatting of cmake file

release/4.3a0
Varun Agrawal 2020-12-27 19:13:41 -05:00
parent 6c85850147
commit 085d01580e
1 changed files with 25 additions and 25 deletions

View File

@ -88,36 +88,36 @@ enable_testing()
option(GTSAM_BUILD_TESTS "Enable/Disable building of tests" ON) option(GTSAM_BUILD_TESTS "Enable/Disable building of tests" ON)
option(GTSAM_BUILD_EXAMPLES_ALWAYS "Build examples with 'make all' (build with 'make examples' if not)" ON) option(GTSAM_BUILD_EXAMPLES_ALWAYS "Build examples with 'make all' (build with 'make examples' if not)" ON)
option(GTSAM_BUILD_TIMING_ALWAYS "Build timing scripts with 'make all' (build with 'make timing' if not" OFF) option(GTSAM_BUILD_TIMING_ALWAYS "Build timing scripts with 'make all' (build with 'make timing' if not" OFF)
# Add option for combining unit tests # Add option for combining unit tests
if(MSVC OR XCODE_VERSION) if(MSVC OR XCODE_VERSION)
option(GTSAM_SINGLE_TEST_EXE "Combine unit tests into single executable (faster compile)" ON) option(GTSAM_SINGLE_TEST_EXE "Combine unit tests into single executable (faster compile)" ON)
else() else()
option(GTSAM_SINGLE_TEST_EXE "Combine unit tests into single executable (faster compile)" OFF) option(GTSAM_SINGLE_TEST_EXE "Combine unit tests into single executable (faster compile)" OFF)
endif() endif()
mark_as_advanced(GTSAM_SINGLE_TEST_EXE) mark_as_advanced(GTSAM_SINGLE_TEST_EXE)
# Enable make check (http://www.cmake.org/Wiki/CMakeEmulateMakeCheck) # Enable make check (http://www.cmake.org/Wiki/CMakeEmulateMakeCheck)
if(GTSAM_BUILD_TESTS) if(GTSAM_BUILD_TESTS)
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> --output-on-failure) add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> --output-on-failure)
# Also add alternative checks using valgrind. # Also add alternative checks using valgrind.
# We don't look for valgrind being installed in the system, since these # We don't look for valgrind being installed in the system, since these
# targets are not invoked unless directly instructed by the user. # targets are not invoked unless directly instructed by the user.
if (UNIX) if (UNIX)
# Run all tests using valgrind: # Run all tests using valgrind:
add_custom_target(check_valgrind) add_custom_target(check_valgrind)
endif() endif()
# Add target to build tests without running # Add target to build tests without running
add_custom_target(all.tests) add_custom_target(all.tests)
endif() endif()
# Add examples target # Add examples target
add_custom_target(examples) add_custom_target(examples)
# Add timing target # Add timing target
add_custom_target(timing) add_custom_target(timing)
# Implementations of this file's macros: # Implementations of this file's macros: