diff options
Diffstat (limited to 'Utilities/CMakeLists.txt')
-rw-r--r-- | Utilities/CMakeLists.txt | 48 |
1 files changed, 22 insertions, 26 deletions
diff --git a/Utilities/CMakeLists.txt b/Utilities/CMakeLists.txt index 15de8b6..6b89920 100644 --- a/Utilities/CMakeLists.txt +++ b/Utilities/CMakeLists.txt @@ -81,32 +81,28 @@ 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) +IF(CMAKE_BUILD_MFC_DIALOG) + 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(CMAKE_BUILD_MFC_DIALOG) # Drive documentation generation. ADD_CUSTOM_COMMAND( |