diff --git a/CMakeLists.txt b/CMakeLists.txt index 397ef55..08eee71 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,6 @@ if (EXAMPLE_ENABLED) endif() if (TEST_ENABLED) + enable_testing() add_subdirectory(test) endif() - diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 557bc15..6a28f14 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,4 +1,3 @@ -enable_testing() include_directories("${CMAKE_SOURCE_DIR}/src") include_directories("${CMAKE_SOURCE_DIR}/test") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")