summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QtDialogCPack.cmake.in
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 /Source/QtDialog/QtDialogCPack.cmake.in
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 'Source/QtDialog/QtDialogCPack.cmake.in')
-rw-r--r--Source/QtDialog/QtDialogCPack.cmake.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/QtDialog/QtDialogCPack.cmake.in b/Source/QtDialog/QtDialogCPack.cmake.in
index 24dda01..fc1fa79 100644
--- a/Source/QtDialog/QtDialogCPack.cmake.in
+++ b/Source/QtDialog/QtDialogCPack.cmake.in
@@ -1,4 +1,13 @@
+SET(IS_APPLE @APPLE@)
SET(CMAKE_PACKAGE_QTGUI @CMAKE_PACKAGE_QTGUI@)
+
IF(CMAKE_PACKAGE_QTGUI)
SET(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} "cmake-gui" "cmake-gui(beta)")
+IF(IS_APPLE)
+ # for apple install we set the install prefix to /Applications and then install
+ # cmake into the bundle for cmake-gui
+ SET(CPACK_SET_DESTDIR TRUE)
+ENDIF(IS_APPLE)
ENDIF(CMAKE_PACKAGE_QTGUI)
+
+