Set required properties for ios test apps

This commit is contained in:
JonnyPtn 2025-02-17 19:56:05 +00:00 committed by Lukas Dürrenberger
parent 8c9ffe972f
commit 068088233b

View File

@ -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)