diff --git a/CMakeLists.txt b/CMakeLists.txt index ba27141..2a8f0ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,5 +96,7 @@ install( ) # add the testsuite -enable_testing() -add_subdirectory("test") +include(CTest) +if(BUILD_TESTING AND TEST_DRIVE_BUILD_TESTING) + add_subdirectory("test") +endif() diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt index d8fe100..e4bc2df 100644 --- a/config/CMakeLists.txt +++ b/config/CMakeLists.txt @@ -12,6 +12,7 @@ # limitations under the License. option(BUILD_SHARED_LIBS "Whether the libraries built should be shared" FALSE) +option(TEST_DRIVE_BUILD_TESTING "Enable testing for this project" ON) set( module-dir