CMake does not build the project. It is used to generate the files used by your desired build tool (Ninja, Unix Makefiles, Xcode, etc.).
-
Get the source:
$ git clone https://github.com/nouveaus/kaolin
-
Run CMake:
$ cmake -S kaolin -B build -G Ninja
-
Build the project:
$ cmake --build build
The host system must have the following dependencies:
- CMake, at least version 3.28
- A CMake generator, for example Ninja. To see a list of the available generators on your system, execute
$ cmake --help
Run CMake to configure your build, e.g. cmake -B build -G Ninja
.
Extra configuration options may be passed here with -DVARIABLE=value
.
$ cmake --build build
The OS image will be produced in build/os.img
.
There is a task to automatically launch this with QEMU, if available:
$ cmake --build build -t run