summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-02-16 18:05:03 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-02-16 18:05:03 (GMT)
commit22927ede1e74e43ad78699ff4082d8b78e50599c (patch)
tree6f6bd3e1613623e7f9e7356ef798a02fe553df84 /CMakeLists.txt
parent337c1f0b7230d6b0b4674d1d7168eef5a6dce6cd (diff)
downloadCMake-22927ede1e74e43ad78699ff4082d8b78e50599c.zip
CMake-22927ede1e74e43ad78699ff4082d8b78e50599c.tar.gz
CMake-22927ede1e74e43ad78699ff4082d8b78e50599c.tar.bz2
ENH: support for cpack and install of cmake-gui as mac app bundle
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 59bcc30..38e0d3e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -412,6 +412,17 @@ IF(BUILD_CursesDialog)
ENDIF(BUILD_CursesDialog)
IF(BUILD_QtDialog)
+ IF(APPLE)
+ SET(CMAKE_INSTALL_SUBDIR
+ "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}-${CMake_VERSION_PATCH}")
+ IF(CMake_VERSION_DATE)
+ SET(CMAKE_INSTALL_SUBDIR
+ "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}-${CMake_VERSION_DATE}")
+ ENDIF(CMake_VERSION_DATE)
+ SET(CMAKE_BUNDLE_LOCATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_SUBDIR}")
+ SET(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_SUBDIR}/cmake-gui.app/Contents")
+ ENDIF(APPLE)
+
SET(QT_NEED_RPATH FALSE)
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")
SET(QT_NEED_RPATH TRUE)