Under MacOSX, generate an Info.plist

dev-ui
Didier 'OdyX' Raboud 2013-10-30 17:08:12 +01:00
parent 9638327932
commit 11dd911faf
2 changed files with 34 additions and 0 deletions

View File

@ -94,6 +94,13 @@ if(PLATFORM_LINUX)
endif()
endif(PLATFORM_LINUX)
if(PLATFORM_MACOSX)
configure_file(Info.plist.cmake ${CMAKE_CURRENT_BINARY_DIR}/Info.plist)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Info.plist
DESTINATION ${CMAKE_INSTALL_PREFIX}/Contents/
)
endif(PLATFORM_MACOSX)
if(PLATFORM_WINDOWS)
set(COLOBOT_VERSION_4COMMAS "${COLOBOT_VERSION_MAJOR},${COLOBOT_VERSION_MINOR},${COLOBOT_VERSION_REVISION},0")
configure_file(colobot.rc.cmake ${CMAKE_CURRENT_BINARY_DIR}/colobot.rc)

27
desktop/Info.plist.cmake Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>Colobot</string>
<key>CFBundleExecutable</key>
<string>colobot</string>
<key>CFBundleIconFile</key>
<string>Colobot</string>
<key>CFBundleIdentifier</key>
<string>info.colobot.colobot</string>
<key>CFBundleName</key>
<string>Colobot</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>cbot</string>
<key>CFBundleVersion</key>
<string>@COLOBOT_VERSION_FULL@</string>
</dict>
</plist>