gen | ||
include | ||
src | ||
subprojects | ||
.gitignore | ||
LICENSE | ||
meson.build | ||
README.md |
Meson Example
Here is an example of a meson configuration using external libraries such as LibXML2 (Fully Meson-compatible) and Poco (Cmake subproject). For now it only builds on Linux and the prefered method is static linking because the output libraries name does not follow Poco CMake's standard. More on this can be addressed on the following issues:
Building
In the root directory launch the following:
meson build
cd build && meson compile
Why Meson instead of CMake ?
Meson is a new build system that aims to be less verbose than CMake. It uses Ninja as its backend which might be faster than make. Meson is considered cross-platform and its only drawback for now is its compatibility with other projects.
Comparing this repo with the cmake-fetch, we can see that for the same project we have way less configuration for the same result. Meson should be used for newer project, and newer project should learn to comply with this build system which would be the future of cross compilation.