dusk/tools/copytool/CMakeLists.txt
2025-02-20 22:09:21 -06:00

16 lines
480 B
CMake

# 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()