aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-09-14 20:11:22 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-09-14 20:11:22 +0000
commit988786539d42c69deebe7bc58c710e8b8396b0ac (patch)
treefd68d9a58723887d8183c76af540efa76eafccc7
parent601a9517a3543a44d4758d14e3c376c327911df8 (diff)
downloadextra-cmake-modules-988786539d42c69deebe7bc58c710e8b8396b0ac.tar.gz
extra-cmake-modules-988786539d42c69deebe7bc58c710e8b8396b0ac.tar.bz2
only include CTest if there is a CTestConfig.cmake
Alex svn path=/trunk/KDE/kdelibs/; revision=584425
-rw-r--r--modules/KDE4Defaults.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/KDE4Defaults.cmake b/modules/KDE4Defaults.cmake
index cfec6756..f03770bc 100644
--- a/modules/KDE4Defaults.cmake
+++ b/modules/KDE4Defaults.cmake
@@ -1,7 +1,10 @@
-# support for Dart: http://public.kitware.com/dashboard.php?name=kde
enable_testing()
-include(CTest)
+
+# support for Dart: http://public.kitware.com/dashboard.php?name=kde
+if (EXISTS ${CMAKE_SOURCE_DIR}/CTestConfig.cmake)
+ include(CTest)
+endif (EXISTS ${CMAKE_SOURCE_DIR}/CTestConfig.cmake)
# Always include srcdir and builddir in include path
# This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in about every subdir