summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-11 09:58:14 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-11 09:58:14 +0200
commit939c0f48181046d6b938be0f5ef327a4d991e433 (patch)
tree6ef76a1a84a50537a2dcbbba3bb3d47bf6d82e5c /CMakeLists.txt
parenta132cb7c04a39dc81f998ec3364fbaae87927016 (diff)
Mobile: Adjustments and fixes for iOS
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 11 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3b61f9dc..d18a1674 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,6 +22,7 @@ project (Lagrange
22 DESCRIPTION "A Beautiful Gemini Client" 22 DESCRIPTION "A Beautiful Gemini Client"
23 LANGUAGES C 23 LANGUAGES C
24) 24)
25set (IOS_BUNDLE_VERSION 1)
25set (COPYRIGHT_YEAR 2021) 26set (COPYRIGHT_YEAR 2021)
26 27
27# Build configuration. 28# Build configuration.
@@ -190,7 +191,10 @@ if (IOS)
190 app/Images.xcassets 191 app/Images.xcassets
191 res/LaunchScreen.storyboard 192 res/LaunchScreen.storyboard
192 ) 193 )
193 set_source_files_properties(app/Images.xcassets PROPERTIES 194 set_source_files_properties(
195 app/Images.xcassets
196 res/LaunchScreen.storyboard
197 PROPERTIES
194 MACOSX_PACKAGE_LOCATION Resources 198 MACOSX_PACKAGE_LOCATION Resources
195 ) 199 )
196elseif (APPLE) 200elseif (APPLE)
@@ -275,14 +279,16 @@ if (APPLE)
275 MACOSX_BUNDLE_INFO_STRING "${PROJECT_VERSION}" 279 MACOSX_BUNDLE_INFO_STRING "${PROJECT_VERSION}"
276 MACOSX_BUNDLE_ICON_FILE "Lagrange.icns" 280 MACOSX_BUNDLE_ICON_FILE "Lagrange.icns"
277 MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}" 281 MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}"
278 MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_VERSION}" 282 MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}"
279 MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}" 283 MACOSX_BUNDLE_GUI_IDENTIFIER "fi.skyjake.lagrange"
280 MACOSX_BUNDLE_GUI_IDENTIFIER "fi.skyjake.Lagrange"
281 MACOSX_BUNDLE_COPYRIGHT "© ${COPYRIGHT_YEAR} Jaakko Keränen" 284 MACOSX_BUNDLE_COPYRIGHT "© ${COPYRIGHT_YEAR} Jaakko Keränen"
282 XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "fi.skyjake.Lagrange" 285 XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "fi.skyjake.lagrange"
286 XCODE_ATTRIBUTE_SKIP_INSTALL "NO"
287 XCODE_ATTRIBUTE_INSTALL_PATH "$(LOCAL_APPS_DIR)"
283 ) 288 )
284 if (IOS) 289 if (IOS)
285 set_target_properties (app PROPERTIES 290 set_target_properties (app PROPERTIES
291 MACOSX_BUNDLE_BUNDLE_VERSION "${IOS_BUNDLE_VERSION}"
286 XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2" 292 XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2"
287 XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon" 293 XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon"
288 MACOSX_BUNDLE_ICON_FILE "AppIcon" 294 MACOSX_BUNDLE_ICON_FILE "AppIcon"