From 35f81328dd60e910f522b8ce1b9b081a1b2f0e36 Mon Sep 17 00:00:00 2001 From: Valentin Volkl Date: Thu, 5 Aug 2021 15:07:43 +0200 Subject: [PATCH] [cmake] use BUILD_TESTING to make tests optional --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 703694fd..4599b856 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,6 +62,9 @@ find_package(k4LCIOReader) include(CTest) add_subdirectory(k4MarlinWrapper) -add_subdirectory(test) + +if(BUILD_TESTING) + add_subdirectory(test) +endif() gaudi_install(CMAKE)