mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-06 21:37:47 +00:00
tests/emscripten: add link-time dependency on the resources
This commit is contained in:
committed by
Anonymous Maarten
parent
5415909f2d
commit
6052136ced
@@ -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 "$<TARGET_FILE_DIR:${TARGET}>/$<JOIN:${RESOURCE_FILE_NAMES},$<SEMICOLON>$<TARGET_FILE_DIR:${TARGET}>/>")
|
||||
|
||||
Reference in New Issue
Block a user