CMake: refactor Samsung targets
Refactor all Samsung 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 8284807 commit 128224269140ec0390f7902e21f360f2987d6dce
@Harrison Mutai Harrison Mutai authored on 12 Feb 2021
Showing 3 changed files
View
targets/TARGET_Samsung/CMakeLists.txt
View
targets/TARGET_Samsung/TARGET_SIDK_S1SBP6A/CMakeLists.txt
View
targets/TARGET_Samsung/TARGET_SIDK_S5JS100/CMakeLists.txt