summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-08-22 16:53:25 (GMT)
committerBrad King <brad.king@kitware.com>2003-08-22 16:53:25 (GMT)
commitc59cc5a542ca78cba2983d91b588ae1f7ee490dd (patch)
tree8a8cb774926d628d38d7fb5ae158bd70c50b511a /Utilities
parent26c08ee33b29a9b9b0ac01d5cfd26ff18759c43c (diff)
downloadCMake-c59cc5a542ca78cba2983d91b588ae1f7ee490dd.zip
CMake-c59cc5a542ca78cba2983d91b588ae1f7ee490dd.tar.gz
CMake-c59cc5a542ca78cba2983d91b588ae1f7ee490dd.tar.bz2
ENH: Moved decision to build MFCDialog up to top level. It is used in both the Source and Utilities directories.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/CMakeLists.txt48
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(