From 6890126e0aa044f8558e4cae5c32f219939fb15a Mon Sep 17 00:00:00 2001 From: Georgios Bitzes Date: Thu, 25 Jul 2019 13:23:57 +0200 Subject: [PATCH] Add DAVIX_TESTS cmake flag to entirely disable building all tests (#47) --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dbae5ac7..b967b631 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,6 +75,7 @@ option(ENABLE_THIRD_PARTY_COPY "enable or disable third party copy support" FALS # tests option(BENCH_TESTS "enable or disable the bench tests" FALSE) +option(DAVIX_TESTS "Flag to disable the building of all tests" TRUE) # libs checks find_package(Threads) @@ -118,8 +119,9 @@ if(EXISTS "${CMAKE_SOURCE_DIR}/dist/CMakeLists.txt") add_subdirectory (dist) endif() -add_subdirectory (test) - +if(DAVIX_TESTS) + add_subdirectory (test) +endif() ############################################################################# ## headers