diff options
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 15 |
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) |