SFML/examples/tennis/CMakeLists.txt

16 lines
461 B
CMake
Raw Normal View History

# all source files
set(SRC Tennis.cpp)
2022-10-07 01:33:19 +08:00
if(SFML_OS_IOS)
set(RESOURCES
2022-08-07 13:38:34 +08:00
resources/ball.wav
resources/tuffy.ttf)
set_source_files_properties(${RESOURCES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
endif()
# define the tennis target
sfml_add_example(tennis GUI_APP
SOURCES ${SRC}
BUNDLE_RESOURCES ${RESOURCES}
DEPENDS SFML::Audio SFML::Graphics
RESOURCES_DIR resources)