diff options
author | Brad King <brad.king@kitware.com> | 2003-07-23 21:59:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-07-23 21:59:37 (GMT) |
commit | dfdcd239ecce3eb83c61936049e1da273db67ed5 (patch) | |
tree | ce5033a691dad711f3ec42eee69bf6d65dc0e54b | |
parent | 5a1d6f28667ca4fb200b948c5a7c1d9fa2dead83 (diff) | |
download | CMake-dfdcd239ecce3eb83c61936049e1da273db67ed5.zip CMake-dfdcd239ecce3eb83c61936049e1da273db67ed5.tar.gz CMake-dfdcd239ecce3eb83c61936049e1da273db67ed5.tar.bz2 |
ENH: Added build of documentation for CMakeSetup.
-rw-r--r-- | Utilities/CMakeLists.txt | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/Utilities/CMakeLists.txt b/Utilities/CMakeLists.txt index 1fa5b75..a190fac 100644 --- a/Utilities/CMakeLists.txt +++ b/Utilities/CMakeLists.txt @@ -49,7 +49,7 @@ IF(UNIX) SOURCE ${CMake_SOURCE_DIR}/Utilities/Doxygen/authors.txt OUTPUTS ${CMake_BINARY_DIR}/Docs/ccmake.txt ) - ADD_DEPENDENCIES(documentation ccmake) + ADD_DEPENDENCIES(documentation ccmake) INSTALL_FILES(${CMAKE_MAN_DIR}/man1 FILES ${CMake_BINARY_DIR}/Docs/ccmake.1 ) @@ -61,6 +61,33 @@ IF(UNIX) ENDIF(CURSES_LIBRARY) ENDIF(UNIX) +IF(WIN32) + IF(NOT UNIX) + IF(NOT BORLAND) + SET(CMD ${CMD_DIR}/CMakeSetup${CMD_EXT}) + ADD_CUSTOM_COMMAND( + TARGET documentation + COMMAND ${CMD} + ARGS --help-full ${CMake_BINARY_DIR}/Docs/CMakeSetup.txt + --help-html ${CMake_BINARY_DIR}/Docs/CMakeSetup.html + --help-man ${CMake_BINARY_DIR}/Docs/CMakeSetup.1 + DEPENDS ${CMD} + SOURCE ${CMake_SOURCE_DIR}/Utilities/Doxygen/doxyfile.in + OUTPUTS ${CMake_BINARY_DIR}/Docs/CMakeSetup.txt + ) + ADD_DEPENDENCIES(documentation CMakeSetup) + INSTALL_FILES(${CMAKE_MAN_DIR}/man1 FILES + ${CMake_BINARY_DIR}/Docs/CMakeSetup.1 + ) + INSTALL_FILES(${CMAKE_DOC_DIR} FILES + ${CMake_BINARY_DIR}/Docs/CMakeSetup.txt + ${CMake_BINARY_DIR}/Docs/CMakeSetup.html + ) + SET(DOC_FILES ${DOC_FILES} ${CMake_BINARY_DIR}/Docs/CMakeSetup.txt) + ENDIF(NOT BORLAND) + ENDIF(NOT UNIX) +ENDIF(WIN32) + # Drive documentation generation. ADD_CUSTOM_COMMAND( TARGET documentation |