# Copyright (c) 2021 Dominic Msters # # This software is released under the MIT License. # https://opensource.org/licenses/MIT function(tool_vn_character DEP_NAME IN OUT) add_custom_command( OUTPUT ${TEMP_DIR}/vn/${DEP_NAME}.c ${TEMP_DIR}/vn/${DEP_NAME}.h COMMAND node ${TOOLS_DIR}/vn/character-sheet-generator.js --assets="${ASSETS_DIR}" --root="${ROOT_DIR}" --temp="${TEMP_DIR}" --in="${IN}" --out="${OUT}" --dep="${DEP_NAME}" COMMENT "Generating VN Character ${DEP_NAME}" ) # target_sources(${PROJECT_NAME} # PRIVATE # ${CMAKE_CURRENT_BINARY_DIR}/${TEMP_DIR}/vn/${DEP_NAME}.c # ${CMAKE_CURRENT_BINARY_DIR}/${TEMP_DIR}/vn/${DEP_NAME}.h # ) # target_include_directories(${PROJECT_NAME} # PUBLIC # ${CMAKE_CURRENT_BINARY_DIR}/${TEMP_DIR}/vn/ # ) endfunction()