2014-09-30 22:07:25 +08:00
|
|
|
|
|
|
|
set(SRCROOT ${PROJECT_SOURCE_DIR}/examples/opengl)
|
|
|
|
|
|
|
|
# all source files
|
|
|
|
set(SRC ${SRCROOT}/OpenGL.cpp)
|
|
|
|
|
2018-04-13 02:39:55 +08:00
|
|
|
if (SFML_OS_IOS)
|
|
|
|
set(RESOURCES
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/resources/background.jpg
|
2020-12-13 04:40:52 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/resources/tuffy.ttf)
|
2018-04-13 02:39:55 +08:00
|
|
|
set_source_files_properties(${RESOURCES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
|
|
|
endif()
|
|
|
|
|
2014-09-30 22:07:25 +08:00
|
|
|
# define the opengl target
|
|
|
|
sfml_add_example(opengl GUI_APP
|
|
|
|
SOURCES ${SRC}
|
2018-04-13 02:39:55 +08:00
|
|
|
BUNDLE_RESOURCES ${RESOURCES}
|
2019-04-13 19:16:32 +08:00
|
|
|
DEPENDS sfml-graphics
|
2018-01-13 07:19:56 +08:00
|
|
|
RESOURCES_DIR resources)
|