STYLE: add man page for cpack

Alex
This commit is contained in:
Alexander Neundorf 2007-06-14 11:17:43 -04:00
parent 68cb7b3173
commit 756f455565
1 changed files with 18 additions and 0 deletions

View File

@ -43,6 +43,24 @@ INSTALL_FILES(${CMAKE_DOC_DIR} FILES
) )
SET(DOC_FILES ${DOC_FILES} ${CMake_BINARY_DIR}/Docs/ctest.txt) 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. # Generate documentation for "ccmake" executable.
IF(BUILD_CursesDialog) IF(BUILD_CursesDialog)
GET_TARGET_PROPERTY(CMD ccmake LOCATION) GET_TARGET_PROPERTY(CMD ccmake LOCATION)