idk why but my GDB just stopped working

This commit is contained in:
2023-12-05 20:58:11 -06:00
parent f140b26172
commit e4da9b4d2f
5 changed files with 29 additions and 18 deletions

View File

@ -17,4 +17,6 @@ set(
# Tools
add_subdirectory(assetstool)
add_subdirectory(texturetool)
add_subdirectory(copytool)
add_subdirectory(texturetool)
add_subdirectory(truetypetool)

View File

@ -0,0 +1,11 @@
# Copyright (c) 2023 Dominic Msters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
function(tool_copy target input output)
add_custom_target(${target}
COMMAND ${CMAKE_COMMAND} -E copy ${input} ${output}
)
add_dependencies(dawnassets ${target})
endfunction()

View File

@ -0,0 +1,8 @@
# Copyright (c) 2023 Dominic Msters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
function(tool_truetype target ttf)
tool_copy(${target} ${ttf} ${DAWN_ASSETS_BUILD_DIR}/${target}.ttf)
endfunction()