summaryrefslogtreecommitdiff
path: root/CMakeCPackOptions.cmake.in
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2014-09-29 08:42:49 -0400
committerBrad King <brad.king@kitware.com>2015-11-13 08:46:54 -0500
commit4bca9401269878d2f3b0465377f0fb8bce87c734 (patch)
tree4ca849ce697e7f43333fb35ae25a39a266741976 /CMakeCPackOptions.cmake.in
parentc4b9ee1878c62a272d38ae057e0a76409be54e8f (diff)
downloadcmake-4bca9401269878d2f3b0465377f0fb8bce87c734.tar.gz
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 b6013efdda..ae006536dc 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: