CMake: Refactor Silicon Laboratories targets
Refactor all Silicon Laboratories targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
ls
1 parent 3174a4c commit d960d8fb49718077fb1020c68037e81e4a8125cb
@Hugues Kamba Hugues Kamba authored on 12 Feb 2021
Showing 6 changed files
View
targets/TARGET_Silicon_Labs/CMakeLists.txt
View
targets/TARGET_Silicon_Labs/TARGET_EFM32/CMakeLists.txt
View
targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG/CMakeLists.txt
View
targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG11/CMakeLists.txt
View
targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/CMakeLists.txt
View
targets/TARGET_Silicon_Labs/TARGET_SL_RAIL/CMakeLists.txt