test: add unifont-9.0.02.hex as a resource (so it works out-of-the-box)

from a patchset by Vladislav Dmitrievich Turbanov:
https://github.com/libsdl-org/SDL/pull/4062
main
Ozkan Sezer 2021-03-04 18:32:32 +03:00
parent a52d0db532
commit 81cdb1bb0d
2 changed files with 57087 additions and 1 deletions

View File

@ -107,7 +107,7 @@ endif()
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/resources_dummy.c "int main(int argc, const char **argv){ return 1; }\n") file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/resources_dummy.c "int main(int argc, const char **argv){ return 1; }\n")
add_executable(SDL2_test_resoureces ${CMAKE_CURRENT_BINARY_DIR}/resources_dummy.c) add_executable(SDL2_test_resoureces ${CMAKE_CURRENT_BINARY_DIR}/resources_dummy.c)
file(GLOB RESOURCE_FILES *.bmp *.wav moose.dat utf8.txt) file(GLOB RESOURCE_FILES *.bmp *.hex *.wav moose.dat utf8.txt)
foreach(RESOURCE_FILE ${RESOURCE_FILES}) foreach(RESOURCE_FILE ${RESOURCE_FILES})
add_custom_command(TARGET SDL2_test_resoureces POST_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${RESOURCE_FILE} $<TARGET_FILE_DIR:SDL2_test_resoureces>) add_custom_command(TARGET SDL2_test_resoureces POST_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${RESOURCE_FILE} $<TARGET_FILE_DIR:SDL2_test_resoureces>)
endforeach(RESOURCE_FILE) endforeach(RESOURCE_FILE)

57086
test/unifont-9.0.02.hex Normal file

File diff suppressed because it is too large Load Diff