SFML/examples/opengl/CMakeLists.txt

20 lines
576 B
CMake
Raw Permalink Normal View History

# all source files
set(SRC OpenGL.cpp)
2022-10-07 01:33:19 +08:00
if(SFML_OS_IOS)
set(RESOURCES
2022-08-07 13:38:34 +08:00
resources/background.jpg
resources/tuffy.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
RESOURCES_DIR resources)
# external dependency headers
2022-10-09 12:31:27 +08:00
target_include_directories(opengl SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/include)