File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 88 tags :
99 - Ubuntu2004-64bit
1010 script :
11- - cmake -DCODE_COVERAGE=ON .
11+ - cmake -DCODE_COVERAGE=ON -DBUILD_TESTS=ON .
1212 - make
1313 - ctest --output-on-failure
1414 - make maxpluslibcoverage
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.14.0 FATAL_ERROR)
22project (MaxPLusLib)
33
44option (CODE_COVERAGE "Compile for code coverage (default OFF)." OFF )
5+ option (BUILD_TESTS "Build tests" OFF )
56
67set (CPM_USE_LOCAL_PACKAGES ON )
78include (config/get_cpm.cmake)
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ This creates a static library that can be used with the provided include files.
2222Use the following to run the tests and coverage results.
2323
2424``` bash
25- cmake -DCODE_COVERAGE=ON .
25+ cmake -DCODE_COVERAGE=ON -DBUILD_TESTS=ON .
2626ctest
2727make maxpluslibcoverage
2828```
Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ add_subdirectory(algebra)
55add_subdirectory (base)
66add_subdirectory (game)
77add_subdirectory (graph)
8- add_subdirectory (testbench)
8+
9+ if (BUILD_TESTS)
10+ add_subdirectory (testbench)
11+ endif (BUILD_TESTS)
12+
913
1014set (MAXPLUSLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /../include )
1115target_include_directories (maxplus PUBLIC
You can’t perform that action at this time.
0 commit comments