Section 2: Building With CMake
Now that we have the most essential skills, it's time to start diving a little deeper. The next part will allow you to solve most situations that come your way when building a project in CMake.
We purposely focus on modern, elegant practices and avoid bringing too much legacy into the picture. Specifically, we'll be dealing with logical build targets rather than manipulating individual files.
Next, we'll explain in detail all the steps that the toolchain takes to build a binary artifact from a target. That's the part many books about C++ are missing: how to configure and use preprocessors, compilers, and linkers properly, as well as how to optimize their behavior.
Lastly, this section will cover all the different ways in which CMake offers to manage dependencies, and will explain how to pick the best one for your specific use case.
This section comprises the following chapters:
- Chapter 4, Working with Targets ...