set(CMSIS_PATH ${CMAKE_CURRENT_LIST_DIR})
set(CMSIS_VENDOR ST)
set(CMSIS_DEVICE stm32h7xx)

add_library(CMSIS INTERFACE)
target_sources(CMSIS INTERFACE
        ${CMSIS_PATH}/Device/${CMSIS_VENDOR}/${CMSIS_DEVICE}/Source/system_${CMSIS_DEVICE}.c
)
target_include_directories(CMSIS INTERFACE
        ${CMSIS_PATH}/Core
        ${CMSIS_PATH}/Device/${CMSIS_VENDOR}/${CMSIS_DEVICE}/Include
)
# target_link_libraries(CMSIS INTERFACE STM32H7xx_HAL_Driver)
