diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 92c531ecc0..c325e91ae4 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -189,6 +189,7 @@ macro(add_sdl_test_executable TARGET) foreach(res IN LISTS RESOURCE_FILES) get_filename_component(res_name "${res}" NAME) target_link_options(${TARGET} PRIVATE "SHELL:--embed-file ${res}@${res_name}") + set_property(TARGET ${TARGET} APPEND PROPERTY LINK_DEPENDS "${res}") endforeach() endif() set_property(TARGET ${TARGET} APPEND PROPERTY ADDITIONAL_CLEAN_FILES "$/$$/>")