diff --git a/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/CMakeLists.txt index d01e33b9d4..c11c3e4657 100644 --- a/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/CMakeLists.txt @@ -1,18 +1,35 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_library(mbed-portenta-h7 INTERFACE) +add_library(mbed-portenta-h7-m4 INTERFACE) -target_sources(mbed-portenta-h7 +target_sources(mbed-portenta-h7-m4 INTERFACE PeripheralPins.c system_clock_override.c portenta_power.cpp ) -target_include_directories(mbed-portenta-h7 +target_include_directories(mbed-portenta-h7-m4 INTERFACE . ) -target_link_libraries(mbed-portenta-h7 INTERFACE mbed-stm32h747xi) +target_link_libraries(mbed-portenta-h7-m4 INTERFACE mbed-stm32h747xi-cm4) + + +add_library(mbed-portenta-h7-m7 INTERFACE) + +target_sources(mbed-portenta-h7-m7 + INTERFACE + PeripheralPins.c + system_clock_override.c + portenta_power.cpp +) + +target_include_directories(mbed-portenta-h7-m7 + INTERFACE + . +) + +target_link_libraries(mbed-portenta-h7-m7 INTERFACE mbed-stm32h747xi-cm7)