2017-10-27 06:19:01 +02:00
|
|
|
option(RW_VERBOSE_DEBUG_MESSAGES "Print verbose debugging messages" ON)
|
|
|
|
|
2018-07-13 21:33:13 +02:00
|
|
|
option(BUILD_TOOLS "Build tools")
|
2017-10-27 06:19:01 +02:00
|
|
|
option(BUILD_TESTS "Build test suite")
|
|
|
|
option(BUILD_VIEWER "Build GUI data viewer")
|
|
|
|
|
|
|
|
option(ENABLE_SCRIPT_DEBUG "Enable verbose script execution")
|
|
|
|
option(ENABLE_PROFILING "Enable detailed profiling metrics")
|
|
|
|
|
|
|
|
option(TESTS_NODATA "Build tests for no-data testing")
|
|
|
|
|
|
|
|
set(FAILED_CHECK_ACTION "IGNORE" CACHE STRING "What action to perform on a failed RW_CHECK (in debug mode)")
|
|
|
|
set_property(CACHE FAILED_CHECK_ACTION PROPERTY STRINGS "IGNORE" "ABORT" "BREAKPOINT")
|
|
|
|
|
2017-10-29 23:50:59 +01:00
|
|
|
set(FILESYSTEM_LIBRARY "BOOST" CACHE STRING "Which filesystem library to use")
|
|
|
|
set_property(CACHE FILESYSTEM_LIBRARY PROPERTY STRINGS "CXX17" "CXXTS" "BOOST")
|
|
|
|
|
2017-10-27 06:19:01 +02:00
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
2017-10-29 07:37:18 +01:00
|
|
|
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: Debug Release")
|
2017-10-27 06:19:01 +02:00
|
|
|
endif()
|
2017-10-28 08:15:34 +02:00
|
|
|
|
2018-03-06 00:49:11 +01:00
|
|
|
option(CHECK_IWYU "Enable IncludeWhatYouUse (Analyze #includes in C and C++ source files)")
|
|
|
|
option(CHECK_CLANGTIDY "Enable clang-tidy (A clang-based C++ linter tool)")
|
2018-03-06 00:59:02 +01:00
|
|
|
option(CHECK_CLANGTIDY_FIX "Apply fixes from clang-tidy (!!!RUN ON CLEAN GIT TREE!!!)")
|
2017-10-29 07:37:18 +01:00
|
|
|
|
2018-06-07 01:45:45 +02:00
|
|
|
set(ENABLE_SANITIZERS "" CACHE STRING "Enable selected sanitizer.")
|
|
|
|
|
2017-10-28 08:15:34 +02:00
|
|
|
option(TEST_COVERAGE "Enable coverage analysis (implies CMAKE_BUILD_TYPE=Debug)")
|
2017-11-03 23:59:02 +01:00
|
|
|
option(SEPARATE_TEST_SUITES "Add each test suite as separate test to CTest")
|
2018-02-14 00:42:39 +01:00
|
|
|
|
2018-06-07 01:45:45 +02:00
|
|
|
option(BOOST_STATIC "Link against static Boost libraries")
|
2018-06-07 02:19:53 +02:00
|
|
|
|
2018-06-21 23:44:06 +02:00
|
|
|
option(USE_CONAN "Use Conan as package manager")
|