Events starting
This commit is contained in:
20
tools/eventcompile/CMakeLists.txt
Normal file
20
tools/eventcompile/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2025 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
find_package(Python3 COMPONENTS Interpreter REQUIRED)
|
||||
|
||||
# Custom command to generate all header files
|
||||
add_custom_target(DUSK_EVENTS
|
||||
COMMAND
|
||||
${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/eventcompile.py
|
||||
--output ${DUSK_GENERATED_HEADERS_DIR}/event/
|
||||
--input ${DUSK_DATA_DIR}/events/
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/eventcompile.py
|
||||
COMMENT "Generating event header files"
|
||||
VERBATIM
|
||||
)
|
||||
|
||||
# Ensure headers are generated before compiling main
|
||||
add_dependencies(${DUSK_TARGET_NAME} DUSK_EVENTS)
|
Reference in New Issue
Block a user