From cf5bfd5b7913ce020c1d3a333b3d774a1641a5ed Mon Sep 17 00:00:00 2001 From: anonimal Date: Wed, 20 Feb 2019 02:32:35 +0000 Subject: [PATCH] CMake: make test building optional --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6adb8998..4a0376c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -201,8 +201,11 @@ else() endif() endif() +set(BUILD_TESTS FALSE CACHE BOOL "Build Zano tests") add_subdirectory(contrib) add_subdirectory(src) -add_subdirectory(tests) +if (BUILD_TESTS) + add_subdirectory(tests) +endif()