diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,9 @@ endif() add_subdirectory(src) -add_subdirectory(autotests) +if (BUILD_TESTING) + add_subdirectory(autotests) +endif() if (NOT CMAKE_CROSSCOMPILING) add_subdirectory(data) endif()