diff --git a/CMakeLists.txt b/CMakeLists.txt index 22f63c2..13e88d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,5 +4,6 @@ project(plugin VERSION 1.0.0) add_subdirectory(src) add_subdirectory(doc) -enable_testing() -add_subdirectory(tests EXCLUDE_FROM_ALL) +if ( ${CMAKE_TESTING_ENABLED} ) + add_subdirectory(tests) +endif()