diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,9 @@ ki18n_install(po) endif() add_subdirectory( src ) -add_subdirectory( autotests ) +if (BUILD_TESTING) + add_subdirectory( autotests ) +endif() if (BUILD_QCH) ecm_install_qch_export(