CMake
-
CMake is open-source, cross-platform build system generator, which
generates build files(Eg Makefile, Ninja, Visual Studio, Xcode etc).
CMake is called Meta build system because it does not builds source code to produce software builds (ie exe or a.out) but generates a build system based on project, environment, and user-provided configuration information
CMake is CASE SENSITIVE language.
CMake vs Makefile
| Makefile | CMake | |
|---|---|---|
| What | Makefile is a file defining how files are compiled and linked. | CMake, instead, uses a CMakeLists.txt file to describe targets, sources, and dependencies and generates Makefiles |
Install
Linux
sudo apt install cmake
cmake --version