-
Book Overview & Buying
-
Table Of Contents
Minimal CMake
By :
Incredible work getting this far; we’ve covered a lot of ground! We started by getting familiar with using CMake from the terminal (cmake -B build and cmake --build build should be well and truly etched into your memory). We then walked through a simple CMakeLists.txt file, examining the most important commands and why they’re needed. After that, we delved into generators and examined some of the differences between single- and multi-config generators, and how to specify the build type in each case. We finally looked at the seed of our project, an implementation of Conway’s Game of Life, and how we can incrementally add more files to an existing project as we expand the functionality.
In the next chapter, we will look at how we can bring external dependencies into our project. This will allow us to augment and improve the functionality of our application and the maintainability of our code. This is where CMake really shines, helping us integrate with...