Created
January 11, 2023 19:59
-
-
Save Novakov/205400073df5a94df412f3c81e87d988 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(OPENCM3_ROOT ${opencm3_SOURCE_DIR}) | |
find_package(Python3) | |
set(IRQ_IN_FILE include/libopencm3/stm32/f7/irq.json) | |
add_custom_command( | |
OUTPUT ${OPENCM3_ROOT}/include/libopencm3/stm32/f7/nvic.h | |
COMMAND ${Python3_EXECUTABLE} ${OPENCM3_ROOT}/scripts/irq2nvic_h ./${IRQ_IN_FILE} | |
WORKING_DIRECTORY ${OPENCM3_ROOT} | |
DEPENDS ${OPENCM3_ROOT}/${IRQ_IN_FILE} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment