1 string(TIMESTAMP CURRENT_YEAR "%Y")
3 set(CPACK_BUNDLE_NAME "OpenTTD")
4 set(CPACK_BUNDLE_ICON "${CMAKE_SOURCE_DIR}/os/macosx/openttd.icns")
5 set(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_BINARY_DIR}/Info.plist")
6 set(CPACK_DMG_BACKGROUND_IMAGE "${CMAKE_SOURCE_DIR}/os/macosx/splash.png")
7 set(CPACK_DMG_FORMAT "UDBZ")
9 # Create a temporary Info.plist.in, where we will fill in the version via
10 # CPackProperties.cmake.in. This because at this point in time the version
12 configure_file("${CMAKE_SOURCE_DIR}/os/macosx/Info.plist.in" "${CMAKE_CURRENT_BINARY_DIR}/Info.plist.in")
13 set(CPACK_BUNDLE_PLIST_SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Info.plist.in")
15 # Delay fixup_bundle() till the install step; this makes sure all executables
16 # exists and it can do its job.
20 include(BundleUtilities)
21 set(BU_CHMOD_BUNDLE_ITEMS TRUE)
22 fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/../MacOS/openttd\" \"\" \"\")