File tree 4 files changed +8
-3
lines changed
4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 8
8
tags :
9
9
- Ubuntu2004-64bit
10
10
script :
11
- - cmake -DCODE_COVERAGE=ON .
11
+ - cmake -DCODE_COVERAGE=ON -DBUILD_TESTS=ON .
12
12
- make
13
13
- ctest --output-on-failure
14
14
- 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)
2
2
project (MaxPLusLib)
3
3
4
4
option (CODE_COVERAGE "Compile for code coverage (default OFF)." OFF )
5
+ option (BUILD_TESTS "Build tests" OFF )
5
6
6
7
set (CPM_USE_LOCAL_PACKAGES ON )
7
8
include (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.
22
22
Use the following to run the tests and coverage results.
23
23
24
24
``` bash
25
- cmake -DCODE_COVERAGE=ON .
25
+ cmake -DCODE_COVERAGE=ON -DBUILD_TESTS=ON .
26
26
ctest
27
27
make maxpluslibcoverage
28
28
```
Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ add_subdirectory(algebra)
5
5
add_subdirectory (base)
6
6
add_subdirectory (game)
7
7
add_subdirectory (graph)
8
- add_subdirectory (testbench)
8
+
9
+ if (BUILD_TESTS)
10
+ add_subdirectory (testbench)
11
+ endif (BUILD_TESTS)
12
+
9
13
10
14
set (MAXPLUSLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /../include )
11
15
target_include_directories (maxplus PUBLIC
You can’t perform that action at this time.
0 commit comments