From ca94985a90e8b2a0937adcfe65a075a5b95892b5 Mon Sep 17 00:00:00 2001 From: Egor Kuzmin Date: Thu, 5 Nov 2020 12:13:14 +0300 Subject: [PATCH] fix running tests --- CMakeLists.txt | 1 + test/CMakeLists.txt | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eca7448..7bdd07c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,5 +34,6 @@ endif () # Tests if (UUID_BUILD_TESTS) + enable_testing() add_subdirectory(test) endif () \ No newline at end of file diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3c6a66d..cefe4af 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,5 +1,3 @@ -enable_testing() - # Test target add_executable(test_${PROJECT_NAME} main.cpp test_generators.cpp test_uuid.cpp) target_include_directories(test_${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/catch)