1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CMake: Add useful defaults for iphone/ipad screen orientations

This commit is contained in:
reuk 2020-04-24 21:16:20 +01:00
parent eb01832c48
commit 6c71d96188
2 changed files with 9 additions and 3 deletions

View file

@ -23,9 +23,7 @@ juce_add_gui_app(DemoRunner
CAMERA_PERMISSION_ENABLED TRUE
BLUETOOTH_PERMISSION_ENABLED TRUE
FILE_SHARING_ENABLED TRUE
DOCUMENT_BROWSER_ENABLED TRUE
IPHONE_SCREEN_ORIENTATIONS portrait landscape
IPAD_SCREEN_ORIENTATIONS portrait landscape)
DOCUMENT_BROWSER_ENABLED TRUE)
juce_generate_juce_header(DemoRunner)

View file

@ -1534,6 +1534,14 @@ function(_juce_set_fallback_properties target)
set_target_properties(${target} PROPERTIES JUCE_SHOULD_ADD_STORYBOARD ${needs_storyboard})
_juce_set_property_if_not_set(${target} IPHONE_SCREEN_ORIENTATIONS
UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight)
_juce_set_property_if_not_set(${target} IPAD_SCREEN_ORIENTATIONS
UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight)
_juce_set_property_if_not_set(${target}
LAUNCH_STORYBOARD_FILE "${JUCE_CMAKE_UTILS_DIR}/LaunchScreen.storyboard")