diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,7 +87,9 @@ endif() add_subdirectory(src) -add_subdirectory(autotests) +if (BUILD_TESTING) + add_subdirectory(autotests) +endif() ################ create PackageConfig.cmake and install it ####################