KDECMakeSettings¶
Changes 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.
Runtime Paths¶
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.
Testing¶
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 Settings¶
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.
This section also provides an “uninstall” target that can be individually
disabled by setting KDE_SKIP_UNINSTALL_TARGET
to TRUE before including
this module.
Since pre-1.0.0.
Uninstall target functionality since 1.7.0.