Commit Graph

4 Commits (a104dac9cb69b9a5417406813e3faa7ba2ddab8a)

Author SHA1 Message Date
Hugues Kamba 2c3481297c CMake: Create CMSIS library targets to remove dependency on MBED_TARGET_LABELS
This goes towards eventually removing reliance on targets.json to specify
the requirements of Mbed targets.
2021-02-19 13:39:32 +00:00
Martin Kojtal b446238441
CMake GigaDevice: fix exclude all for targets
Co-authored-by: Hugues Kamba-Mpiana <41612201+hugueskamba@users.noreply.github.com>
2021-02-14 19:28:06 +00:00
Harrison Mutai 33c35f791b CMake: refactor GigaDevice targets
Refactor all GigaDevice 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.
2021-02-12 16:55:42 +00:00
Hugues Kamba f13e4959c9 CMake: Add support for GigaDevice targets
Add CMakeLists.txt files to list all the target sources and include directories
2020-12-07 11:25:12 +00:00