CMake: refactor Renesas targets
Refactor all Renesas 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 aa561ee commit 9033d9b6320c4f8103da0d0da0808f7c8a074be3
@Harrison Mutai Harrison Mutai authored on 9 Feb 2021
Showing 6 changed files
View
targets/TARGET_RENESAS/CMakeLists.txt
View
targets/TARGET_RENESAS/TARGET_RZ_A1XX/CMakeLists.txt
View
targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_GR_LYCHEE/CMakeLists.txt
View
targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_RZ_A1H/CMakeLists.txt
View
targets/TARGET_RENESAS/TARGET_RZ_A2XX/CMakeLists.txt
View
targets/TARGET_RENESAS/TARGET_RZ_A2XX/TARGET_GR_MANGO/CMakeLists.txt