mirror of https://github.com/ARMmbed/mbed-os.git
CMake: Refactor target MCU_STM32F103xE library name
parent
76b2902f48
commit
da73b4bf8d
|
|
@ -9,19 +9,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f103xe.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F103xE INTERFACE)
|
||||
add_library(mbed-stm32f103xe INTERFACE)
|
||||
|
||||
target_sources(STM32F103xE
|
||||
target_sources(mbed-stm32f103xe
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F103xE
|
||||
target_include_directories(mbed-stm32f103xe
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F103xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f103xe ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F103xE INTERFACE STM32F1)
|
||||
target_link_libraries(mbed-stm32f103xe INTERFACE mbed-stm32f1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue