From 0836195f4b958974b589fb55a8268564ab441103 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 27 Oct 2019 16:54:49 +0100 Subject: [PATCH] Refactor add test cmake code --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d30e1fd5..b22a544d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,6 +106,10 @@ if (NOT SAILFISHOS) add_subdirectory(nautilus-extension) add_subdirectory(fileitemactionplugin) add_subdirectory(smsapp) + + if(BUILD_TESTING) + add_subdirectory(tests) + endif() else() add_subdirectory(sfos) endif() @@ -123,8 +127,4 @@ if(KF5DocTools_FOUND) add_subdirectory(doc) endif() -if(BUILD_TESTING AND NOT SAILFISHOS) - add_subdirectory(tests) -endif() - feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)