CMake for the impatient
summary
A practical walkthrough shows CMake creating a simple executable that prints hello cmake and scaffolds both Visual Studio and Ninja/GCC builds (producing a build.ninja and world.exe) so configuration is separate from rebuilds. Examples cover include and link paths, debug vs optimized library selection for SFML, bringing in Google test via FetchContent, and using IDEs (Visual Studio and CLion) to inspect generated projects, with demos that actually build and run.
AI-written summary · about
chapters (14)
- 0:00CMake introduction
- 3:56CMake basics
- 12:33CMake generators
- 20:28Why CMake over Make
- 24:42CMake standard for C++
- 26:07Dependency management
- 31:30Third-party libraries
- 35:45Debug and release
- 41:46Fetching dependencies
- 45:00Project structure
- 47:54Modular projects
- 48:14Tooling and IDE
- 50:22Large projects
- 50:43Q&A
related talks
49mBuild Systems: a Simple Solution to a Complicated Problem
01h 01mCMake — From Basics to Building
55mOvercoming C++ Embedded Development Tooling Challenges
01h 00mCross-Platform Pitfalls and How to Avoid Them
58mLevel Up Your Debugging Workflow with CMake Presets, Disassembly View, & GitHub Actions
01h 00mCollaborative C++ Development with Visual Studio Code
52mNew in Visual Studio: CMake Debugger, Better Diagnostics, and Video Games
36mC++ Development with Visual Studio Code
