19 lines
501 B
CMake
19 lines
501 B
CMake
# Copyright (c) 2023 Dominic Masters
|
|
#
|
|
# This software is released under the MIT License.
|
|
# https://opensource.org/licenses/MIT
|
|
|
|
find_package(Python3 REQUIRED COMPONENTS Interpreter)
|
|
|
|
add_custom_target(duskassets
|
|
COMMAND
|
|
${Python3_EXECUTABLE}
|
|
${DUSK_TOOLS_DIR}/assetstool/assetstool.py
|
|
--input=${DUSK_ASSETS_BUILD_DIR}
|
|
--output=${DUSK_BUILD_DIR}/dusk.tar
|
|
COMMENT "Bundling assets..."
|
|
USES_TERMINAL
|
|
DEPENDS ${DUSK_ASSETS}
|
|
)
|
|
|
|
add_dependencies(${DUSK_TARGET_NAME} duskassets) |