summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-07-21 19:02:12 (GMT)
committerBrad King <brad.king@kitware.com>2003-07-21 19:02:12 (GMT)
commitd4042b46d1f6c41aeaf3ed88ef0e74f2b22b43ab (patch)
tree804d0b81ac0325f35027ac15889df15c3213d220 /Source/CMakeLists.txt
parent90397af164b43961e8f60698ec5aff35f2da9852 (diff)
downloadCMake-d4042b46d1f6c41aeaf3ed88ef0e74f2b22b43ab.zip
CMake-d4042b46d1f6c41aeaf3ed88ef0e74f2b22b43ab.tar.gz
CMake-d4042b46d1f6c41aeaf3ed88ef0e74f2b22b43ab.tar.bz2
ENH: Added generation of cmake documentation during build preocess.
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index cadff58..d0c75ed 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -356,6 +356,21 @@ ENDIF(BUILD_TESTING)
INCLUDE (${CMAKE_BINARY_DIR}/Source/LocalUserOptions.cmake OPTIONAL)
INCLUDE (${CMAKE_SOURCE_DIR}/Source/LocalUserOptions.cmake OPTIONAL)
+IF(WIN32)
+ SET(CMD ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/cmake.exe)
+ELSE(WIN32)
+ SET(CMD ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/cmake)
+ENDIF(WIN32)
+
+MAKE_DIRECTORY(${CMake_BINARY_DIR}/Docs)
+ADD_CUSTOM_TARGET(documentation ALL ${CMD}
+ --copyright ${CMake_BINARY_DIR}/Docs/Copyright.txt
+ --help-full ${CMake_BINARY_DIR}/Docs/cmake.txt
+ --help-html ${CMake_BINARY_DIR}/Docs/cmake.html
+ --help-man ${CMake_BINARY_DIR}/Docs/cmake.1
+ )
+ADD_DEPENDENCIES(documentation cmake)
+
INSTALL_TARGETS(/bin cmake)
INSTALL_TARGETS(/bin ctest)
INSTALL_TARGETS(/bin cmaketest)