mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
19 lines
578 B
CMake
19 lines
578 B
CMake
|
|
set(SRCROOT ${PROJECT_SOURCE_DIR}/examples/tennis)
|
|
|
|
# all source files
|
|
set(SRC ${SRCROOT}/Tennis.cpp)
|
|
if (SFML_OS_IOS)
|
|
set(RESOURCES
|
|
${CMAKE_CURRENT_SOURCE_DIR}/resources/ball.wav
|
|
${CMAKE_CURRENT_SOURCE_DIR}/resources/tuffy.ttf)
|
|
set_source_files_properties(${RESOURCES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
|
endif()
|
|
|
|
# define the pong target
|
|
sfml_add_example(tennis GUI_APP
|
|
SOURCES ${SRC}
|
|
BUNDLE_RESOURCES ${RESOURCES}
|
|
DEPENDS sfml-audio sfml-graphics
|
|
RESOURCES_DIR resources)
|