2014-09-30 22:07:25 +08:00
|
|
|
# all source files
|
2022-06-13 00:48:48 +08:00
|
|
|
set(SRC OpenGL.cpp)
|
2014-09-30 22:07:25 +08:00
|
|
|
|
2022-10-07 01:33:19 +08:00
|
|
|
if(SFML_OS_IOS)
|
2018-04-13 02:39:55 +08:00
|
|
|
set(RESOURCES
|
2022-08-07 13:38:34 +08:00
|
|
|
resources/background.jpg
|
|
|
|
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}
|
2021-12-29 13:28:50 +08:00
|
|
|
DEPENDS SFML::Graphics
|
2018-01-13 07:19:56 +08:00
|
|
|
RESOURCES_DIR resources)
|
2021-04-20 21:59:24 +08:00
|
|
|
|
|
|
|
# external dependency headers
|
2022-10-09 12:31:27 +08:00
|
|
|
target_include_directories(opengl SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/include)
|