diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,9 @@ if (ENABLE_EXAMPLES) add_subdirectory(examples) endif() -add_subdirectory(autotests) +if (BUILD_TESTING) + add_subdirectory(autotests) +endif() if (BUILD_QCH) ecm_install_qch_export(