diff options
Diffstat (limited to 'examples/iOS/CMakeLists.txt')
-rw-r--r-- | examples/iOS/CMakeLists.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/iOS/CMakeLists.txt b/examples/iOS/CMakeLists.txt new file mode 100644 index 0000000..24aca5f --- /dev/null +++ b/examples/iOS/CMakeLists.txt @@ -0,0 +1,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") |