diff -ur cmake-2.8.4-orig/CMakeLists.txt cmake-2.8.4/CMakeLists.txt
|
|
|
547 | 547 | ENDIF(BUILD_CursesDialog) |
548 | 548 | |
549 | 549 | IF(BUILD_QtDialog) |
550 | | IF(APPLE) |
| 550 | IF(FALSE) |
551 | 551 | SET(CMAKE_BUNDLE_NAME |
552 | 552 | "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}-${CMake_VERSION_PATCH}") |
553 | 553 | SET(CMAKE_BUNDLE_LOCATION "${CMAKE_INSTALL_PREFIX}") |
… |
… |
|
560 | 560 | ENDIF(NOT "${ENDCH}" STREQUAL "/") |
561 | 561 | SET(CMAKE_INSTALL_PREFIX |
562 | 562 | "${CMAKE_INSTALL_PREFIX}${CMAKE_BUNDLE_NAME}.app/Contents") |
563 | | ENDIF(APPLE) |
| 563 | ENDIF(FALSE) |
564 | 564 | |
565 | 565 | SET(QT_NEED_RPATH FALSE) |
566 | 566 | IF(NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/lib64" AND NOT "${QT_LIBRARY_DIR}" STREQUAL "/usr/lib64") |
diff -ur cmake-2.8.4-orig/Source/QtDialog/CMakeLists.txt cmake-2.8.4/Source/QtDialog/CMakeLists.txt
|
|
|
59 | 59 | IF(Q_WS_WIN) |
60 | 60 | SET(SRCS ${SRCS} CMakeSetup.rc) |
61 | 61 | ENDIF(Q_WS_WIN) |
62 | | IF(Q_WS_MAC) |
| 62 | IF(FALSE) |
63 | 63 | SET(SRCS ${SRCS} CMakeSetup.icns) |
64 | 64 | SET(MACOSX_BUNDLE_ICON_FILE CMakeSetup.icns) |
65 | 65 | SET_SOURCE_FILES_PROPERTIES(CMakeSetup.icns PROPERTIES |
66 | 66 | MACOSX_PACKAGE_LOCATION Resources) |
67 | | ENDIF(Q_WS_MAC) |
| 67 | ENDIF(FALSE) |
68 | 68 | |
69 | 69 | INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) |
70 | 70 | INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) |
71 | 71 | |
72 | | ADD_EXECUTABLE(cmake-gui WIN32 MACOSX_BUNDLE ${SRCS}) |
| 72 | ADD_EXECUTABLE(cmake-gui WIN32 ${SRCS}) |
73 | 73 | TARGET_LINK_LIBRARIES(cmake-gui CMakeLib ${QT_QTMAIN_LIBRARY} ${QT_LIBRARIES}) |
74 | 74 | IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.4) |
75 | | IF(APPLE) |
| 75 | IF(FALSE) |
76 | 76 | SET_TARGET_PROPERTIES(cmake-gui PROPERTIES |
77 | 77 | OUTPUT_NAME ${CMAKE_BUNDLE_NAME}) |
78 | | ENDIF(APPLE) |
| 78 | ENDIF(FALSE) |
79 | 79 | SET(CMAKE_INSTALL_DESTINATION_ARGS |
80 | 80 | BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}") |
81 | 81 | ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.4) |
… |
… |
|
90 | 90 | INSTALL(FILES cmakecache.xml DESTINATION share/mime/packages ) |
91 | 91 | ENDIF(UNIX) |
92 | 92 | |
93 | | IF(APPLE) |
| 93 | IF(FALSE) |
94 | 94 | SET(CMAKE_POSTFLIGHT_SCRIPT |
95 | 95 | "${CMake_BINARY_DIR}/Source/QtDialog/postflight.sh") |
96 | 96 | SET(CMAKE_POSTUPGRADE_SCRIPT |
… |
… |
|
101 | 101 | "${CMake_BINARY_DIR}/Source/QtDialog/postupgrade.sh") |
102 | 102 | INSTALL(CODE "execute_process(COMMAND ln -s \"../MacOS/${CMAKE_BUNDLE_NAME}\" cmake-gui |
103 | 103 | WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/bin)") |
104 | | ENDIF(APPLE) |
| 104 | ENDIF(FALSE) |
105 | 105 | |
106 | | if(APPLE OR WIN32) |
| 106 | if(WIN32) |
107 | 107 | # install rules for including 3rd party libs such as Qt |
108 | 108 | # if a system Qt is used (e.g. installed in /usr/lib/), it will not be included in the installation |
109 | 109 | set(fixup_exe "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/bin/cmake-gui${CMAKE_EXECUTABLE_SUFFIX}") |
… |
… |
|
114 | 114 | include(\"${CMake_SOURCE_DIR}/Modules/BundleUtilities.cmake\") |
115 | 115 | fixup_bundle(\"${fixup_exe}\" \"\" \"${QT_LIBRARY_DIR};${QT_BINARY_DIR}\") |
116 | 116 | ") |
117 | | endif(APPLE OR WIN32) |
| 117 | endif(WIN32) |
118 | 118 | |
119 | 119 | CONFIGURE_FILE("${QtDialog_SOURCE_DIR}/QtDialogCPack.cmake.in" |
120 | 120 | "${QtDialog_BINARY_DIR}/QtDialogCPack.cmake" @ONLY) |