File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ if (CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR )
2+
3+ message (STATUS "Using CMake version ${CMAKE_VERSION} " )
4+
5+ set (Boost_DEBUG ON )
6+ find_package (Boost 1.85 CONFIG REQUIRED COMPONENTS core range included_test_exec_monitor )
7+
8+ include (CTest )
9+
10+ add_custom_target (check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG >)
11+ add_dependencies (check tests )
12+
13+ endif ()
14+
115set (CMAKE_CXX_STANDARD 11)
216set (CMAKE_CXX_STANDARD_REQUIRED ON )
317set (CMAKE_CXX_EXTENSIONS OFF )
@@ -24,7 +38,7 @@ set(LINK_LIBRARIES Boost::sort Boost::included_test_exec_monitor)
2438
2539function (boost_sort_add_test name source )
2640 set (pname "${PREFIX}${name} " )
27- add_executable (${pname} ${source} )
41+ add_executable (${pname} ${source} EXCLUDE_FROM_ALL )
2842 target_link_libraries (${pname} ${LINK_LIBRARIES} )
2943 add_test (NAME ${pname} COMMAND ${pname} )
3044 add_dependencies (tests ${pname} )
You can’t perform that action at this time.
0 commit comments