CMake Build System: Difference between revisions
Jump to navigation
Jump to search
First draft and outline |
No edit summary |
||
| Line 2: | Line 2: | ||
== How to build Miosix with CMake == | == How to build Miosix with CMake == | ||
Building Miosix with CMake follows the standard workflow that you expect from any other CMake project. | |||
Change directory to the root of the Miosix application you want to build and execute the following commands: | |||
<pre> | |||
mkdir build | |||
cd build | |||
cmake .. | |||
make | |||
</pre> | |||
These commands assume your CMake configuration uses Unix Makefiles as the default generator. | |||
== Creating a kernelspace project with CMake == | == Creating a kernelspace project with CMake == | ||
Latest revision as of 19:26, 20 July 2026
Miosix 3 introduces a new build system, based on CMake. The CMake build system has the same capabilities of the old Miosix Makefiles, and in addition it allows better composability of Miosix with other external projects.
How to build Miosix with CMake
Building Miosix with CMake follows the standard workflow that you expect from any other CMake project. Change directory to the root of the Miosix application you want to build and execute the following commands:
mkdir build cd build cmake .. make
These commands assume your CMake configuration uses Unix Makefiles as the default generator.