# Copyright (c) 2025 Dominic Masters
# 
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT

# Sources
target_sources(${DUSK_LIBRARY_TARGET_NAME}
  PUBLIC
    inventory.c
    backpack.c
)

# Item Definitions
dusk_run_python(
  dusk_item_csv_defs
  tools.item.csv
    --csv ${CMAKE_CURRENT_SOURCE_DIR}/item.csv
    --output ${DUSK_GENERATED_HEADERS_DIR}/item/item.h
)
add_dependencies(${DUSK_LIBRARY_TARGET_NAME} dusk_item_csv_defs)