diff options
author | Adam Strzelecki <ono@java.pl> | 2014-09-29 08:42:49 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-11-13 08:46:54 -0500 |
commit | 4bca9401269878d2f3b0465377f0fb8bce87c734 (patch) | |
tree | 4ca849ce697e7f43333fb35ae25a39a266741976 /CMakeCPackOptions.cmake.in | |
parent | c4b9ee1878c62a272d38ae057e0a76409be54e8f (diff) | |
download | cmake-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.in | 7 |
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: |