diff options
| author | Andreas Sturmlechner <[email protected]> | 2015-01-22 22:16:07 +0100 |
|---|---|---|
| committer | Andreas Sturmlechner <[email protected]> | 2015-02-18 01:28:25 +0100 |
| commit | 23e899577187a188e78f748a1a55883888be45db (patch) | |
| tree | bcf5b95586c96221881781fe171ee1792a754ed9 /src | |
| parent | 4a86644b9560c2a8d7f69efc321ab926e4e0310f (diff) | |
Make tests optional
REVIEW: 122212
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
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() |
