Refactor add test cmake code

This commit is contained in:
Nicolas Fella 2019-10-27 16:54:49 +01:00
parent 9d3789e7fd
commit 0836195f4b

View file

@ -106,6 +106,10 @@ if (NOT SAILFISHOS)
add_subdirectory(nautilus-extension) add_subdirectory(nautilus-extension)
add_subdirectory(fileitemactionplugin) add_subdirectory(fileitemactionplugin)
add_subdirectory(smsapp) add_subdirectory(smsapp)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
else() else()
add_subdirectory(sfos) add_subdirectory(sfos)
endif() endif()
@ -123,8 +127,4 @@ if(KF5DocTools_FOUND)
add_subdirectory(doc) add_subdirectory(doc)
endif() endif()
if(BUILD_TESTING AND NOT SAILFISHOS)
add_subdirectory(tests)
endif()
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)