From: Andreas Sturmlechner Date: Thu, 22 Jan 2015 21:16:07 +0000 (+0100) Subject: Make tests optional X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/23e899577187a188e78f748a1a55883888be45db Make tests optional REVIEW: 122212 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 43ffd3115..17ac9cd21 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -337,4 +337,7 @@ install( FILES settings/services/servicemenu.knsrc DESTINATION ${CONFIG_INSTALL_ install( PROGRAMS settings/services/servicemenuinstallation DESTINATION ${BIN_INSTALL_DIR} ) install( PROGRAMS settings/services/servicemenudeinstallation DESTINATION ${BIN_INSTALL_DIR} ) -add_subdirectory(tests) +if(BUILD_TESTING) + find_package(Qt5Test ${QT_MIN_VERSION} CONFIG REQUIRED) + add_subdirectory(tests) +endif()