2014-09-30 22:07:25 +08:00
|
|
|
|
2020-12-13 04:40:52 +08:00
|
|
|
set(SRCROOT ${PROJECT_SOURCE_DIR}/examples/tennis)
|
2014-09-30 22:07:25 +08:00
|
|
|
|
|
|
|
# all source files
|
2020-12-13 04:40:52 +08:00
|
|
|
set(SRC ${SRCROOT}/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}
|
2018-03-21 02:46:57 +08:00
|
|
|
DEPENDS sfml-audio sfml-graphics
|
2018-01-13 07:19:56 +08:00
|
|
|
RESOURCES_DIR resources)
|