-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Minimal CMake
By :

We’re now going to start using CMake. We’ll first introduce the commands we run frequently from the terminal and then those we write in our CMake scripts. We’ll do this by starting with a Hello, CMake! application (a throwback to everyone’s favorite Hello, World! program) bootstrapped with a minimal CMake script, examining each CMake command we use in depth. These commands will soon become second nature and make building your code effortless.
CMake has a rich feature set, but luckily there’s a pretty small amount to learn to start becoming productive. There are lots of options to handle complex use cases; most of which we fortunately don’t need to worry about for the moment. It’s good to know they’re there, but don’t feel you need to learn all there is to know about the commands or CMake language at the outset. There’s plenty of time for that as your project matures.
In this chapter, we’...