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)