From a18410ef079e4c154a3b09a8556b1379c16ae246 Mon Sep 17 00:00:00 2001 From: beholder Date: Wed, 23 Aug 2017 00:40:14 +0300 Subject: [PATCH] make building tests optional --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4527e06418..e67002b89d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -247,6 +247,9 @@ endif() set_packaging_parameters() +option(BUILD_TESTS "Build tests" ON) +MESSAGE(STATUS "Build tests: " ${BUILD_TESTS}) + # add subdirectories for all targets if (NOT ANDROID) add_subdirectory(assignment-client) @@ -259,7 +262,9 @@ if (NOT ANDROID) if (NOT SERVER_ONLY) add_subdirectory(interface) set_target_properties(interface PROPERTIES FOLDER "Apps") - add_subdirectory(tests) + if (BUILD_TESTS) + add_subdirectory(tests) + endif() endif() add_subdirectory(plugins) add_subdirectory(tools)