![]() Should we want to use a different build system instead of the host default (GNU Make for Linux) we need to tell CMake which build generator to use using the -G command option.The code and examples used in this blog are from CMake 3.16 on Ubuntu 20.04 LTS using the GNU Arm Embedded Toolchain and can be download from the GitHub project. It is the first of a small series of posts looking at how we build our training projects comprising application code, supporting library code, real-time operating system and bare metal driver code. This blog post is a mix of musings and advice when using CMake for cross-compiling to the STM STM32F407 Discovery board that we use for our embedded C and C++ training. For this reason, we’ve put aside our prejudices and reconsidered the way we build our example projects used during training by replacing scons with CMake. Here at Feabhas, we find ourselves falling in the latter category, despite the fact the CMake is widely used within the embedded and deeply embedded development community.īut we also know that many of the C/C++ static analysis and code quality tools integrate well with the CMake build system. In this post we will examine how to use CMake to mange the build process for a cross compilation project.ĬMake can be described as a marmite application: you either love it or hate it. In our previous post Why We Need Build Systems we examined the need for Build Systems in modern software development.
0 Comments
Leave a Reply. |