Add enable_testing to the top level project

This enables us to run ctest on the top level build directory
This commit is contained in:
Schaich 2021-03-22 20:26:00 +09:00
parent c84915e212
commit 4c524838f5

View File

@ -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)