fix: Standard magic file not getting bundled into executable correctly

This commit is contained in:
WerWolv
2024-06-29 19:43:24 +02:00
parent cbf415256b
commit b94a4288bf
2 changed files with 9 additions and 5 deletions

View File

@@ -117,6 +117,10 @@ macro(add_imhex_plugin)
endmacro()
macro(add_romfs_resource input output)
if (NOT EXISTS ${input})
message(WARNING "Resource file ${input} does not exist")
endif()
configure_file(${input} ${CMAKE_CURRENT_BINARY_DIR}/romfs/${output} COPYONLY)
list(APPEND LIBROMFS_RESOURCE_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/romfs)