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)