window, opengl and pong examples now work on iOS
This commit is contained in:
parent
82c2f4c05e
commit
1272b704d6
7 changed files with 48 additions and 10 deletions
|
@ -4,8 +4,17 @@ set(SRCROOT ${PROJECT_SOURCE_DIR}/examples/opengl)
|
|||
# all source files
|
||||
set(SRC ${SRCROOT}/OpenGL.cpp)
|
||||
|
||||
if (SFML_OS_IOS)
|
||||
set(RESOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/resources/background.jpg
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/resources/texture.jpg
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/resources/sansation.ttf)
|
||||
set_source_files_properties(${RESOURCES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
||||
endif()
|
||||
|
||||
# define the opengl target
|
||||
sfml_add_example(opengl GUI_APP
|
||||
SOURCES ${SRC}
|
||||
BUNDLE_RESOURCES ${RESOURCES}
|
||||
DEPENDS sfml-graphics OpenGL
|
||||
RESOURCES_DIR resources)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue