# CMake pour Mac : générateur de systèmes de compilation pour projets C et C++

_As of 2026-11-27_

- **Version:** 4.5.1
- **Developer:** Kitware
- **macOS min:** 12
- **License:** Free

CMake est un outil gratuit et open source de Kitware qui lit les fichiers CMakeLists.txt d'un projet et génère des fichiers de compilation pour Xcode, Ninja ou Make. Le téléchargement pour Mac contient une app graphique et les outils en ligne de commande.

CMake does not compile anything itself. It reads the CMakeLists.txt files that describe a project and generates build files for the tool you actually build with, so one description serves macOS, Windows and Linux.
What it does well

Generators. Produces Xcode projects, Ninja build files or Unix Makefiles from the same project description.
Graphical configuration. The CMake app lists a project's options with their values, so you can change them before you configure and generate.
Testing and packaging. ctest runs a project's tests, and cpack builds installers and archives.
Presets. A CMakePresets.json file stores named configurations that the command line, the app and IDEs can share.

Who it is for
C and C++ developers, and anyone who has to build an open-source project whose instructions begin with cmake.
Good to know
CMake needs a compiler, so on a Mac you also install Xcode or Apple's Command Line Tools. Its scripting language takes time to learn, and the app does not put cmake on your PATH until you do the last step below. If you would rather not run CMake by hand, Qt Creator and Visual Studio Code (with the CMake Tools extension) can drive it for you.
How to install

Open the downloaded disk image.
Drag CMake to Applications.
The first time you open it, macOS asks you to confirm an app downloaded from the internet; click Open.
To use cmake in Terminal, run sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install; it creates links in /usr/local/bin.

> Source: https://macsoftpark.net/fr/cmake/
