summaryrefslogtreecommitdiff
path: root/examples/iOS/CMakeLists.txt
blob: 24aca5f48391a8aa3730dcde450d6e8ed76039ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set(SRCROOT ${PROJECT_SOURCE_DIR}/examples/iOS)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)

# All source files
set(SRC ${SRCROOT}/main.cpp)

set(RESOURCES
    ${SRCROOT}/resources/canary.wav
    ${SRCROOT}/resources/image.png
    ${SRCROOT}/resources/orchestral.ogg
    ${SRCROOT}/resources/sansation.ttf)

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
sfml_set_xcode_property(ios_demo CODE_SIGN_IDENTITY "iPhone Developer")
set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.sfml.ios_demo")