[iOS] Improved support for examples, removed the need for a toolchain file

This commit is contained in:
Laurent Gomila 2013-08-29 23:45:13 +02:00 committed by Jonathan De Wachter
parent 4e8e1629d1
commit 239921b456
7 changed files with 20 additions and 203 deletions

View file

@ -299,6 +299,15 @@ macro(sfml_add_example target)
set_target_properties(${target} PROPERTIES XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC YES)
endif()
# set mandatory bundle settings on iOS
if(IOS)
set_target_properties(${target} PROPERTIES
MACOSX_BUNDLE_GUI_IDENTIFIER "com.sfml.${target}"
MACOSX_BUNDLE_BUNDLE_NAME "${target}"
MACOSX_BUNDLE_BUNDLE_EXECUTABLE_NAME "${target}"
)
endif()
# add the install rule
install(TARGETS ${target}
RUNTIME DESTINATION ${INSTALL_MISC_DIR}/examples/${target} COMPONENT examples