# Copyright (c) 2023 Dominic Msters # # This software is released under the MIT License. # https://opensource.org/licenses/MIT function(copytool file) set(TARGET_NAME "copytool_${file}") # Replace slashes with underscores string(REPLACE "/" "_" TARGET_NAME ${TARGET_NAME}) add_custom_target(${TARGET_NAME} COMMAND ${CMAKE_COMMAND} -E copy ${DUSK_ASSETS_DIR}/${file} ${DUSK_ASSETS_BUILD_DIR}/${file} ) add_dependencies(duskassets ${TARGET_NAME}) endfunction()