File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 14
14
script :
15
15
- source set_gray_dir.sh
16
16
- mkdir bin && mkdir build && cd build
17
- - cmake .. -DENABLE_ASAN=ON
17
+ - cmake .. -DENABLE_TEST=ON - DENABLE_ASAN=ON
18
18
- make
19
19
- make test
20
20
- cd ../materials
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
14
14
endif ()
15
15
endif ()
16
16
17
+ option (ENABLE_TEST "Build the testing suite" OFF )
17
18
option (ENABLE_LTO "Enable link-time optimization for the compilation" OFF )
18
19
option (STATIC_BIN "Build fully staticially-linked binaries" OFF )
19
20
option (ENABLE_ASAN "Build executables with address sanitizer enabled" OFF )
@@ -40,8 +41,10 @@ set(VERSION_PATCH 0)
40
41
41
42
set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
42
43
43
- enable_testing ()
44
-
45
44
add_subdirectory (src )
46
- add_subdirectory (test )
45
+
46
+ if (ENABLE_TEST )
47
+ enable_testing ()
48
+ add_subdirectory (test )
49
+ endif (ENABLE_TEST )
47
50
You can’t perform that action at this time.
0 commit comments