From f90153cebb418491bbb9cbe7ee73e06d61336a72 Mon Sep 17 00:00:00 2001 From: Mikhail Komarov Date: Tue, 13 Aug 2019 12:57:48 +0300 Subject: [PATCH] Minor CMake build configuration updates. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 630d18c59..79c5049f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,7 @@ include(CMSetupVersion) cm_setup_version(VERSION 1.70.0) option(BUILD_WITH_CI_KNOWN_ISSUES_SUPPRESS "Build for CI suppressing known issues" FALSE) +option(BUILD_UNIT_TESTS "Build unit tests" FALSE) if(BUILD_WITH_CI_KNOWN_ISSUES_SUPPRESS) add_definitions(-DCI_SUPPRESS_KNOWN_ISSUES) @@ -87,4 +88,6 @@ cm_deploy(TARGETS ${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME} INCLUDE ${CURRENT_SOURCES_DIR}/include NAMESPACE ${CMAKE_WORKSPACE_NAME}::) -add_subdirectory(test) +if(BUILD_UNIT_TESTS) + add_subdirectory(test) +endif()