summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorDidier 'OdyX' Raboud <didier@raboud.com>2013-10-30 17:08:12 +0100
committerDidier 'OdyX' Raboud <didier@raboud.com>2013-11-13 09:34:24 +0100
commit11dd911faf9763382431162985b8363a39ffe481 (patch)
tree6d50cb88f5141c36643a0523d9e282141df74eb2 /desktop
parent96383279321d0e467f18e570f6c84915010dea8f (diff)
downloadcolobot-11dd911faf9763382431162985b8363a39ffe481.tar.gz
colobot-11dd911faf9763382431162985b8363a39ffe481.tar.bz2
colobot-11dd911faf9763382431162985b8363a39ffe481.zip
Under MacOSX, generate an Info.plist
Diffstat (limited to 'desktop')
-rw-r--r--desktop/CMakeLists.txt7
-rw-r--r--desktop/Info.plist.cmake27
2 files changed, 34 insertions, 0 deletions
diff --git a/desktop/CMakeLists.txt b/desktop/CMakeLists.txt
index be886e5..3bf1011 100644
--- a/desktop/CMakeLists.txt
+++ b/desktop/CMakeLists.txt
@@ -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)
diff --git a/desktop/Info.plist.cmake b/desktop/Info.plist.cmake
new file mode 100644
index 0000000..2114909
--- /dev/null
+++ b/desktop/Info.plist.cmake
@@ -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>