diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-06-19 22:38:40 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-06-19 22:38:40 +0000 |
commit | 6f3468783a44d367ef86d1480cce8933d5d04b4c (patch) | |
tree | f64834597b0a475904bb4571e9b0b8cad4af7466 /modules | |
parent | b190b964ae523a1f9244f53ac960b952d63daa5c (diff) | |
download | extra-cmake-modules-6f3468783a44d367ef86d1480cce8933d5d04b4c.tar.gz extra-cmake-modules-6f3468783a44d367ef86d1480cce8933d5d04b4c.tar.bz2 |
-when cmake 2.6 is used, create a manpage for the modules coming with kdelibs and install it
Alex
CCMAIL: winter@kde.org
svn path=/trunk/KDE/kdelibs/; revision=822366
Diffstat (limited to 'modules')
-rw-r--r-- | modules/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index db6a9ad4..7ec3eb9e 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -25,3 +25,10 @@ install( FILES cmake-modules-styleguide.txt kde4init_dummy.cpp.in kde4init_win32 # file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "message(STATUS \"Removing ${_current_FILE}\" )\n" ) # file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "exec_program( ${CMAKE_COMMAND} ARGS -E remove ${_current_FILE} OUTPUT_VARIABLE _dummy)\n" ) #endforeach ( _current_FILE) + +# with cmake 2.6 and above create and install a man page for the kdelibs cmake modules +# (cmake 2.4 doesn't support creating documentation for cmake modules in custom directories) +if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER "2.5") + add_custom_target(KDECMakeModulesManPage ALL COMMAND ${CMAKE_COMMAND} -DCMAKE_MODULE_PATH=${CMAKE_CURRENT_SOURCE_DIR} --help-custom-modules ${CMAKE_CURRENT_BINARY_DIR}/kdecmake.1) + install(FILES kdecmake.1 DESTINATION "${MAN_INSTALL_DIR}/man1") +endif("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER "2.5") |