diff options
author | Alex Merry <alex.merry@kde.org> | 2015-02-01 12:02:39 +0000 |
---|---|---|
committer | Alex Merry <alex.merry@kde.org> | 2015-02-04 18:30:12 +0000 |
commit | b03e287f9abe95372b0bc1b1917a006447280c95 (patch) | |
tree | 30e22db5bcf312ca3f4259a01614652f6c33251f /kde-modules | |
parent | 807ace309a489d21163b5c671d9e449c06e14e20 (diff) | |
download | extra-cmake-modules-b03e287f9abe95372b0bc1b1917a006447280c95.tar.gz extra-cmake-modules-b03e287f9abe95372b0bc1b1917a006447280c95.tar.bz2 |
Create an uninstall target by default in KDE projects.
REVIEW: 122359
Diffstat (limited to 'kde-modules')
-rw-r--r-- | kde-modules/KDECMakeSettings.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kde-modules/KDECMakeSettings.cmake b/kde-modules/KDECMakeSettings.cmake index 4ccbf82e..000761fb 100644 --- a/kde-modules/KDECMakeSettings.cmake +++ b/kde-modules/KDECMakeSettings.cmake @@ -41,6 +41,10 @@ # # 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. #============================================================================= # Copyright 2014 Alex Merry <alex.merry@kde.org> @@ -177,5 +181,10 @@ if(NOT KDE_SKIP_BUILD_SETTINGS) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") endif() + option(KDE_SKIP_UNINSTALL_TARGET "Prevent an \"uninstall\" target from being generated." OFF) + if(NOT KDE_SKIP_UNINSTALL_TARGET) + include("${ECM_MODULE_DIR}/ECMUninstallTarget.cmake") + endif() + endif() ################################################################### |