diff options
author | Alex Merry <kde@randomguy3.me.uk> | 2014-02-04 19:09:35 +0000 |
---|---|---|
committer | Alex Merry <kde@randomguy3.me.uk> | 2014-02-14 13:23:53 +0000 |
commit | 7fcc57a2055f04ca1af880e18309f5d1ecfc5f3c (patch) | |
tree | 1ae9d404727945584ae3b3c92cbb65dc2c127a66 /kde-modules/KDECMakeSettings.cmake | |
parent | 2ec165030b2947e6a4e1b29843b20fbff17aaa1f (diff) | |
download | extra-cmake-modules-7fcc57a2055f04ca1af880e18309f5d1ecfc5f3c.tar.gz extra-cmake-modules-7fcc57a2055f04ca1af880e18309f5d1ecfc5f3c.tar.bz2 |
Improve docs for kde modules
REVIEW: 115488
Diffstat (limited to 'kde-modules/KDECMakeSettings.cmake')
-rw-r--r-- | kde-modules/KDECMakeSettings.cmake | 55 |
1 files changed, 50 insertions, 5 deletions
diff --git a/kde-modules/KDECMakeSettings.cmake b/kde-modules/KDECMakeSettings.cmake index 8164b293..3f675519 100644 --- a/kde-modules/KDECMakeSettings.cmake +++ b/kde-modules/KDECMakeSettings.cmake @@ -1,12 +1,52 @@ -# The following variables can be set to TRUE to skip parts of the functionality: -# KDE_SKIP_RPATH_SETTINGS -# KDE_SKIP_BUILD_SETTINGS -# KDE_SKIP_TEST_SETTINGS +# Change various CMake settings to what the KDE community views as more +# sensible defaults. +# +# It is split into three parts, which can be independently disabled if +# desired. +# +# RPATH +# +# The default runtime path (used on Unix systems to search for +# dynamically-linked libraries) is set to include the location that +# libraries will be installed to (as set in LIB_INSTALL_DIR), and also +# the linker search path. +# +# Note that LIB_INSTALL_DIR needs to be set before including this +# module. Typically, this is done by including the KDEInstallDirs +# module. +# +# This section can be disabled by setting +# KDE_SKIP_RPATH_SETTINGS +# to TRUE before including this module. +# +# +# TEST +# +# Testing is enabled by default, and an option (BUILD_TESTING) is +# provided for users to control this. See the CTest module +# documentation in the CMake manual for more details. +# +# This section can be disabled by setting +# KDE_SKIP_TEST_SETTINGS +# to TRUE before including this module. +# +# +# BUILD +# +# Various CMake build defaults are altered, such as searching source +# and build directories for includes first and enabling automoc by +# default. +# +# This section can be disabled by setting +# KDE_SKIP_BUILD_SETTINGS +# to TRUE before including this module. +# ################# RPATH handling ################################## if(NOT KDE_SKIP_RPATH_SETTINGS) + # Set the default RPATH to point to useful locations, namely where the # libraries will be installed and the linker search path @@ -43,7 +83,11 @@ endif() if(NOT KDE_SKIP_TEST_SETTINGS) - # support for cdash dashboards + + # If there is a CTestConfig.cmake, include CTest. + # Otherwise, there will not be any useful settings, so just + # fake the functionality we care about from CTest. + if (EXISTS ${CMAKE_SOURCE_DIR}/CTestConfig.cmake) include(CTest) else() @@ -52,6 +96,7 @@ if(NOT KDE_SKIP_TEST_SETTINGS) enable_testing() endif () endif () + endif() |