From 1250ea0c2bd8cb3f6f8ec71fa20eb37357ca3900 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Sat, 9 Feb 2013 11:32:45 +0100 Subject: KDECMakeSettings: enable testing by default Alex --- kde-modules/KDECMakeSettings.cmake | 9 ++++++--- 1 file 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 -- cgit v1.2.1