# Copyright (c) 2021 Dominic Msters # # This software is released under the MIT License. # https://opensource.org/licenses/MIT add_subdirectory(texturegen) add_subdirectory(truetypegen) # Texture Tool function(tool_texture target in) add_custom_target(${target} COMMAND texturegen "${DAWN_ASSETS_SOURCE_DIR}/${in}" "${DAWN_ASSETS_BUILD_DIR}/${target}" COMMENT "Generating texture ${target} from ${in}" DEPENDS texturegen ) endfunction() # TrueType Tool function(tool_truetype target in out width height fontSize) add_custom_target(${target} COMMAND truetypegen "${DAWN_ASSETS_SOURCE_DIR}/${in}" "${DAWN_ASSETS_BUILD_DIR}/${out}" "${width}" "${height}" "${fontSize}" COMMENT "Generating truetype ${target} from ${in}" DEPENDS truetypegen ) endfunction()