diff --git a/CMakeLists.txt b/CMakeLists.txt index 7fe45d3..73a9ebe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,14 +6,6 @@ project(zip set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) set(CMAKE_VERBOSE_MAKEFILE ON) option(CMAKE_DISABLE_TESTING "Disable test creation" OFF) -# test -if (NOT CMAKE_DISABLE_TESTING) - enable_testing() - add_subdirectory(test) - find_package(Sanitizers) - add_sanitizers(${PROJECT_NAME} ${test_out}) -endif() - if (MSVC) # Use secure functions by default and suppress warnings about "deprecated" functions @@ -48,6 +40,14 @@ target_include_directories(${PROJECT_NAME} PUBLIC $ ) +# test +if (NOT CMAKE_DISABLE_TESTING) + enable_testing() + add_subdirectory(test) + find_package(Sanitizers) + add_sanitizers(${PROJECT_NAME} ${test_out}) +endif() + #### # Installation (https://github.com/forexample/package-example) {