mirror of
https://github.com/SFML/SFML.git
synced 2025-02-19 06:39:59 +08:00
Set required properties for ios test apps
This commit is contained in:
parent
8c9ffe972f
commit
068088233b
@ -47,6 +47,8 @@ function(sfml_set_common_ios_properties target)
|
||||
MACOSX_BUNDLE ON # Bare executables are not usable on iOS, only bundle applications
|
||||
MACOSX_BUNDLE_GUI_IDENTIFIER "org.sfml-dev.${target}" # If missing, trying to launch an example in simulator will make Xcode < 9.3 crash
|
||||
MACOSX_BUNDLE_BUNDLE_NAME "${target}"
|
||||
MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}"
|
||||
MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION_MAJOR}"
|
||||
MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_VERSION}"
|
||||
)
|
||||
endif()
|
||||
@ -416,6 +418,11 @@ function(sfml_add_test target SOURCES DEPENDS)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Required to actually run the tests
|
||||
if(SFML_OS_IOS)
|
||||
sfml_set_common_ios_properties(${target})
|
||||
endif()
|
||||
|
||||
# Enable support for UTF-8 characters in source code
|
||||
if(SFML_COMPILER_MSVC)
|
||||
target_compile_options(${target} PRIVATE /utf-8)
|
||||
|
Loading…
x
Reference in New Issue
Block a user