2014-09-30 22:07:25 +08:00
|
|
|
# all source files
|
2022-06-13 00:48:48 +08:00
|
|
|
set(SRC Tennis.cpp)
|
2018-04-13 02:39:55 +08:00
|
|
|
if (SFML_OS_IOS)
|
|
|
|
set(RESOURCES
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/resources/ball.wav
|
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 pong target
|
2020-12-13 04:40:52 +08:00
|
|
|
sfml_add_example(tennis GUI_APP
|
2014-09-30 22:07:25 +08:00
|
|
|
SOURCES ${SRC}
|
2018-04-13 02:39:55 +08:00
|
|
|
BUNDLE_RESOURCES ${RESOURCES}
|
2021-12-29 13:28:50 +08:00
|
|
|
DEPENDS SFML::Audio SFML::Graphics
|
2018-01-13 07:19:56 +08:00
|
|
|
RESOURCES_DIR resources)
|