diff options
author | Alex Neundorf <neundorf@kde.org> | 2013-02-09 11:32:45 +0100 |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2013-02-09 11:32:45 +0100 |
commit | 1250ea0c2bd8cb3f6f8ec71fa20eb37357ca3900 (patch) | |
tree | fd61d4d81fce546bd3db16d721ddd2880079ec55 | |
parent | c8b1b0d646162d0323e1be51f3afdcbca9fef5ea (diff) | |
download | extra-cmake-modules-1250ea0c2bd8cb3f6f8ec71fa20eb37357ca3900.tar.gz extra-cmake-modules-1250ea0c2bd8cb3f6f8ec71fa20eb37357ca3900.tar.bz2 |
KDECMakeSettings: enable testing by default
Alex
-rw-r--r-- | kde-modules/KDECMakeSettings.cmake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kde-modules/KDECMakeSettings.cmake b/kde-modules/KDECMakeSettings.cmake index fbd22754..8de8a611 100644 --- a/kde-modules/KDECMakeSettings.cmake +++ b/kde-modules/KDECMakeSettings.cmake @@ -50,12 +50,15 @@ endif() if(NOT KDE_SKIP_TEST_SETTINGS) - enable_testing() - # support for cdash dashboards if (EXISTS ${CMAKE_SOURCE_DIR}/CTestConfig.cmake) include(CTest) - endif (EXISTS ${CMAKE_SOURCE_DIR}/CTestConfig.cmake) + else() + option(BUILD_TESTING "Build the testing tree." ON) + if(BUILD_TESTING) + enable_testing() + endif () + endif () endif() # Tell FindQt4.cmake to point the QT_QTFOO_LIBRARY targets at the imported targets |