idk
This commit is contained in:
37
tools/input/csv/CMakeLists.txt
Normal file
37
tools/input/csv/CMakeLists.txt
Normal file
@@ -0,0 +1,37 @@
|
||||
# Copyright (c) 2026 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
function(dusk_input_csv CSV_FILE)
|
||||
# dusk_csv_to_enum(
|
||||
# ${CSV_FILE}
|
||||
# input/inputactiontype.h
|
||||
# inputaction_t
|
||||
# INPUT_ACTION_
|
||||
# id
|
||||
# )
|
||||
|
||||
# dusk_csv_to_array(
|
||||
# ${CSV_FILE}
|
||||
# input/inputactionname.h
|
||||
# INPUT_ACTION_NAMES
|
||||
# input/inputactiontype.h
|
||||
# INPUT_ACTION_
|
||||
# id
|
||||
# id
|
||||
# )
|
||||
|
||||
dusk_run_python(
|
||||
dusk_input_csv_defs
|
||||
tools.input.csv
|
||||
--csv ${CSV_FILE}
|
||||
--output ${DUSK_GENERATED_HEADERS_DIR}/input/inputactiontype.h
|
||||
)
|
||||
add_dependencies(${DUSK_LIBRARY_TARGET_NAME} dusk_input_csv_defs)
|
||||
|
||||
target_compile_definitions(${DUSK_LIBRARY_TARGET_NAME}
|
||||
PUBLIC
|
||||
INPUT_CSV_GENERATED=1
|
||||
)
|
||||
endfunction()
|
||||
Reference in New Issue
Block a user