summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-06-14 15:17:43 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-06-14 15:17:43 (GMT)
commit756f455565082cfc725e7c07283211d058f8ebea (patch)
treed4ca16c397e5b2538bc52839d5bfacf8790c95dd /Utilities
parent68cb7b3173f978b014686573fa76d8776f1e74bd (diff)
downloadCMake-756f455565082cfc725e7c07283211d058f8ebea.zip
CMake-756f455565082cfc725e7c07283211d058f8ebea.tar.gz
CMake-756f455565082cfc725e7c07283211d058f8ebea.tar.bz2
STYLE: add man page for cpack
Alex
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Utilities/CMakeLists.txt b/Utilities/CMakeLists.txt
index 06160da..e3706d8 100644
--- a/Utilities/CMakeLists.txt
+++ b/Utilities/CMakeLists.txt
@@ -43,6 +43,24 @@ INSTALL_FILES(${CMAKE_DOC_DIR} FILES
)
SET(DOC_FILES ${DOC_FILES} ${CMake_BINARY_DIR}/Docs/ctest.txt)
+# Generate documentation for "cpack" executable.
+GET_TARGET_PROPERTY(CMD cpack LOCATION)
+ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMake_BINARY_DIR}/Docs/cpack.txt
+ COMMAND ${CMD}
+ ARGS --help-full ${CMake_BINARY_DIR}/Docs/cpack.txt
+ --help-html ${CMake_BINARY_DIR}/Docs/cpack.html
+ --help-man ${CMake_BINARY_DIR}/Docs/cpack.1
+ DEPENDS cpack
+ MAIN_DEPENDENCY ${CMake_SOURCE_DIR}/Utilities/Doxygen/authors.txt
+ )
+INSTALL_FILES(${CMAKE_MAN_DIR}/man1 FILES ${CMake_BINARY_DIR}/Docs/cpack.1)
+INSTALL_FILES(${CMAKE_DOC_DIR} FILES
+ ${CMake_BINARY_DIR}/Docs/cpack.txt
+ ${CMake_BINARY_DIR}/Docs/cpack.html
+ )
+SET(DOC_FILES ${DOC_FILES} ${CMake_BINARY_DIR}/Docs/cpack.txt)
+
# Generate documentation for "ccmake" executable.
IF(BUILD_CursesDialog)
GET_TARGET_PROPERTY(CMD ccmake LOCATION)