summaryrefslogtreecommitdiffstats
path: root/CMakeCPackOptions.cmake.in
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2014-09-29 12:42:49 (GMT)
committerBrad King <brad.king@kitware.com>2015-11-13 13:46:54 (GMT)
commit4bca9401269878d2f3b0465377f0fb8bce87c734 (patch)
tree4ca849ce697e7f43333fb35ae25a39a266741976 /CMakeCPackOptions.cmake.in
parentc4b9ee1878c62a272d38ae057e0a76409be54e8f (diff)
downloadCMake-4bca9401269878d2f3b0465377f0fb8bce87c734.zip
CMake-4bca9401269878d2f3b0465377f0fb8bce87c734.tar.gz
CMake-4bca9401269878d2f3b0465377f0fb8bce87c734.tar.bz2
Improve appearance of CMake .dmg package on OS X
Configure our use of the CPack DragNDrop generator to specify a custom background image and script.
Diffstat (limited to 'CMakeCPackOptions.cmake.in')
-rw-r--r--CMakeCPackOptions.cmake.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeCPackOptions.cmake.in b/CMakeCPackOptions.cmake.in
index b6013ef..ae00653 100644
--- a/CMakeCPackOptions.cmake.in
+++ b/CMakeCPackOptions.cmake.in
@@ -183,6 +183,13 @@ if("${CPACK_GENERATOR}" STREQUAL "PackageMaker")
endif()
endif()
+if("${CPACK_GENERATOR}" STREQUAL "DragNDrop")
+ set(CPACK_DMG_BACKGROUND_IMAGE
+ "@CMake_SOURCE_DIR@/Packaging/CMakeDMGBackground.tif")
+ set(CPACK_DMG_DS_STORE_SETUP_SCRIPT
+ "@CMake_SOURCE_DIR@/Packaging/CMakeDMGSetup.scpt")
+endif()
+
if("${CPACK_GENERATOR}" STREQUAL "WIX")
# Reset CPACK_PACKAGE_VERSION to deal with WiX restriction.
# But the file names still use the full CMake_VERSION value: