I hate my life

This commit is contained in:
2021-11-05 10:55:10 -07:00
parent 489c282022
commit b6cc69eef6
18 changed files with 524 additions and 88 deletions

View File

@ -5,7 +5,7 @@
function(tool_assets args)
add_custom_target(assets
COMMAND tar -C ./assets -czvf assets.tar.gz *
COMMAND tar -C ${ASSETS_BUILD_DIR} -czvf assets.tar.gz *
DEPENDS ${ARGV}
COMMENT "Compressing Assets"
)
@ -23,7 +23,7 @@ function(tool_copy target)
LIST(GET ARGV ${indexnext} to)
LIST(APPEND LOOP_DEPENDENCIES ${LOOP_TARGET})
add_custom_command(OUTPUT ${LOOP_TARGET}
COMMAND ${CMAKE_COMMAND} -E copy "${ROOT_DIR}/${ASSETS_DIR}/${from}" "${ASSETS_DIR}/${to}"
COMMAND ${CMAKE_COMMAND} -E copy "${from}" "${ASSETS_BUILD_DIR}/${to}"
COMMENT "Copying ${from} => ${to}"
)
endforeach()