Caffeinated Coder
Book an appointment
Lesson 25 · Building and performance

Building with CMake

A real C++ project has many files, and typing a compiler command for each one does not scale. CMake lets you describe the project once, as targets in a CMakeLists.txt, and turns that into a build system with a build graph: every output file and the files it is made from. Follow a three-file project through configure, build and run, then edit one file and watch only the files that depend on it rebuild.

11 min10 steps5 questionsAdvanced
Fig 25 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.