I hate my life

This commit is contained in:
2021-11-05 10:55:10 -07:00
parent f6ea081b2d
commit 715ecd3a73
16 changed files with 522 additions and 86 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()