Fix PORTENTA_H7_xx targets

pull/14266/head
Robert Walton 2021-02-10 11:40:08 +00:00
parent 6a737ac58d
commit e8227f5be7
1 changed files with 21 additions and 4 deletions

View File

@ -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)