2018-02-28 04:17:08 +08:00
|
|
|
|
2018-04-09 14:12:38 +08:00
|
|
|
set(SRCROOT ${PROJECT_SOURCE_DIR}/examples/iOS)
|
2018-02-28 04:17:08 +08:00
|
|
|
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
|
|
|
|
|
|
|
|
# All source files
|
|
|
|
set(SRC ${SRCROOT}/main.cpp)
|
|
|
|
|
|
|
|
set(RESOURCES
|
2018-04-09 14:16:55 +08:00
|
|
|
${SRCROOT}/resources/canary.wav
|
|
|
|
${SRCROOT}/resources/image.png
|
|
|
|
${SRCROOT}/resources/orchestral.ogg
|
|
|
|
${SRCROOT}/resources/sansation.ttf)
|
2018-02-28 04:17:08 +08:00
|
|
|
|
|
|
|
set_source_files_properties( ${RESOURCES} PROPERTIES
|
|
|
|
MACOSX_PACKAGE_LOCATION Resources )
|
|
|
|
|
|
|
|
# Define the window target
|
|
|
|
sfml_add_example(ios_demo GUI_APP
|
|
|
|
SOURCES ${SRC} ${RESOURCES}
|
|
|
|
DEPENDS sfml-window sfml-system sfml-graphics sfml-audio
|
|
|
|
"-framework OpenGLES")
|
|
|
|
|
|
|
|
# The app needs an identifier and signing to work correctly
|
2018-04-09 05:21:54 +08:00
|
|
|
sfml_set_xcode_property(ios_demo CODE_SIGN_IDENTITY "iPhone Developer")
|
2018-02-28 04:17:08 +08:00
|
|
|
set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.sfml.ios_demo")
|