diff options
author | Brad King <brad.king@kitware.com> | 2003-08-06 19:03:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-08-06 19:03:56 (GMT) |
commit | 1471a1a6f1d0386ac5997792b8795396a7ad8720 (patch) | |
tree | 06610deb7d823151ba03e6fc440b7d5499be8524 /Utilities/CMakeLists.txt | |
parent | b78888fe3889c2477b0d0ce93d6ab14bcdd25000 (diff) | |
download | CMake-1471a1a6f1d0386ac5997792b8795396a7ad8720.zip CMake-1471a1a6f1d0386ac5997792b8795396a7ad8720.tar.gz CMake-1471a1a6f1d0386ac5997792b8795396a7ad8720.tar.bz2 |
ENH: Added documentation for ctest.
Diffstat (limited to 'Utilities/CMakeLists.txt')
-rw-r--r-- | Utilities/CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Utilities/CMakeLists.txt b/Utilities/CMakeLists.txt index a190fac..15de8b6 100644 --- a/Utilities/CMakeLists.txt +++ b/Utilities/CMakeLists.txt @@ -35,6 +35,26 @@ INSTALL_FILES(${CMAKE_DOC_DIR} FILES ) SET(DOC_FILES ${DOC_FILES} ${CMake_BINARY_DIR}/Docs/cmake.txt) +# Generate documentation for "ctest" executable. +SET(CMD ${CMD_DIR}/ctest${CMD_EXT}) +ADD_CUSTOM_COMMAND( + TARGET documentation + COMMAND ${CMD} + ARGS --help-full ${CMake_BINARY_DIR}/Docs/ctest.txt + --help-html ${CMake_BINARY_DIR}/Docs/ctest.html + --help-man ${CMake_BINARY_DIR}/Docs/ctest.1 + DEPENDS ${CMD} + SOURCE ${CMake_SOURCE_DIR}/Utilities/Doxygen/authors.txt + OUTPUTS ${CMake_BINARY_DIR}/Docs/ctest.txt + ) +ADD_DEPENDENCIES(documentation ctest) +INSTALL_FILES(${CMAKE_MAN_DIR}/man1 FILES ${CMake_BINARY_DIR}/Docs/ctest.1) +INSTALL_FILES(${CMAKE_DOC_DIR} FILES + ${CMake_BINARY_DIR}/Docs/ctest.txt + ${CMake_BINARY_DIR}/Docs/ctest.html + ) +SET(DOC_FILES ${DOC_FILES} ${CMake_BINARY_DIR}/Docs/ctest.txt) + # Generate documentation for "ccmake" executable. IF(UNIX) IF(CURSES_LIBRARY) |