Skip to content

Commit a6ee6ed

Browse files
committed
Made it possible to disable tests.
1 parent 43ce323 commit a6ee6ed

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ add_library(interval-tree INTERFACE)
88

99
target_include_directories(interval-tree INTERFACE ./include)
1010

11-
if(DRAW_EXAMPLES)
11+
if(INT_TREE_DRAW_EXAMPLES)
1212
add_subdirectory(cairo-wrap)
1313
add_subdirectory(drawings)
1414
endif()
15-
add_subdirectory(tests)
15+
if (INT_TREE_ENABLE_TESTS)
16+
add_subdirectory(tests)
17+
endif()

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int main()
4949
Having googletest (find here on github) installed / built is a requirement to run the tests.
5050
Create a build folder, navigate there, run cmake and build the tree-tests target.
5151
You might have to adapt the linker line for gtest, if you built it yourself and didn't install it into your system.
52-
If you want to generate the pretty drawings, install cairo, pull the submodule and pass DRAW_EXAMPLES=on to the cmake command line to generate a drawings/make_drawings executeable.
52+
If you want to generate the pretty drawings, install cairo, pull the submodule and pass INT_TREE_DRAW_EXAMPLES=on to the cmake command line to generate a drawings/make_drawings executeable.
5353

5454
## Free Functions
5555
### interval<NumericT, Kind> make_safe_interval(NumericT border1, NumericT border2)

cmake/options.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
option(DRAW_EXAMPLES "Draws some examples in a subdirectory. run make_drawable.sh before this" OFF )
1+
option(INT_TREE_DRAW_EXAMPLES "Draws some examples in a subdirectory. run make_drawable.sh before this" OFF)
2+
option(INT_TREE_ENABLE_TESTS "Enable tests?" ON)

0 commit comments

Comments
 (0)