We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b44e36 commit 26a083bCopy full SHA for 26a083b
CMakeLists.txt
@@ -7,6 +7,8 @@ set(CMAKE_CXX_STANDARD 17)
7
set(CMAKE_CXX_STANDARD_REQUIRED ON)
8
set(ZIP_SRC thirdparty/zip/src)
9
10
+option(LIBSCRATCHCPP_BUILD_UNIT_TESTS "Build unit tests" ON)
11
+
12
find_package(nlohmann_json 3.9.1 REQUIRED)
13
find_package(utf8cpp REQUIRED)
14
@@ -27,7 +29,6 @@ target_link_libraries(scratchcpp PRIVATE zip)
27
29
28
30
target_compile_definitions(scratchcpp PRIVATE LIBSCRATCHCPP_LIBRARY)
31
-set (BUILD_TESTING TRUE)
-if (BUILD_TESTING)
32
+if (LIBSCRATCHCPP_BUILD_UNIT_TESTS)
33
add_subdirectory(test)
34
endif()
0 commit comments