From 4c524838f5967aa0a4711886250b9398824581f6 Mon Sep 17 00:00:00 2001 From: Schaich Date: Mon, 22 Mar 2021 20:26:00 +0900 Subject: [PATCH] Add enable_testing to the top level project This enables us to run ctest on the top level build directory --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fda0260f..2440256f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,6 +54,10 @@ if(ZINT_DEBUG) endif() endif() +if(ZINT_TEST) + enable_testing() +endif() + if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC) if(ZINT_SANITIZE) add_compile_options(-fsanitize=undefined -fsanitize=address)