From 00646c782459f8fbfdba89bf505b2c1c8a1cd207 Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Sun, 8 Jul 2018 21:03:51 +0200 Subject: Honor BUILD_TESTING Only build tests if BUILD_TESTING is on Differential Revision: https://phabricator.kde.org/D13947 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 6102f7b4..945198c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,7 +39,9 @@ ecm_setup_version(PROJECT VARIABLE_PREFIX KCONFIG add_subdirectory(src) -add_subdirectory(autotests) +if (BUILD_TESTING) + add_subdirectory(autotests) +endif() include (ECMPoQmTools) if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") -- cgit v1.2.1