Basic window.
This commit is contained in:
16
tools/copytool/CMakeLists.txt
Normal file
16
tools/copytool/CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
# 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()
|
Reference in New Issue
Block a user