Use relative paths for resource files

This commit is contained in:
Chris Thrasher 2022-08-06 23:38:34 -06:00 committed by Lukas Dürrenberger
parent 40b175adf4
commit 72d88033e2
2 changed files with 4 additions and 4 deletions

View File

@ -3,8 +3,8 @@ set(SRC OpenGL.cpp)
if (SFML_OS_IOS) if (SFML_OS_IOS)
set(RESOURCES set(RESOURCES
${CMAKE_CURRENT_SOURCE_DIR}/resources/background.jpg resources/background.jpg
${CMAKE_CURRENT_SOURCE_DIR}/resources/tuffy.ttf) resources/tuffy.ttf)
set_source_files_properties(${RESOURCES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) set_source_files_properties(${RESOURCES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
endif() endif()

View File

@ -2,8 +2,8 @@
set(SRC Tennis.cpp) set(SRC Tennis.cpp)
if (SFML_OS_IOS) if (SFML_OS_IOS)
set(RESOURCES set(RESOURCES
${CMAKE_CURRENT_SOURCE_DIR}/resources/ball.wav resources/ball.wav
${CMAKE_CURRENT_SOURCE_DIR}/resources/tuffy.ttf) resources/tuffy.ttf)
set_source_files_properties(${RESOURCES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) set_source_files_properties(${RESOURCES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
endif() endif()