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

Minimal CMake
By :

In Chapter 3, Using FetchContent with External Dependencies, we covered a lot of ground understanding how to use FetchContent
as an application developer. This is super useful, and if you’re not interested in creating your own libraries, then this knowledge will take you a long way. If, however, you’re excited about the possibility of creating a library to share across more than one of your projects (or even better, with the broader open source community!), then this chapter is for you.
In this chapter, we’re going to cover the CMake commands to create a library, and then make it easily accessible through FetchContent
. The skills you’ll learn here are useful for your libraries but can also be applied to other projects not using CMake. Depending on the size and complexity of the library, it can often only take a few commands to add FetchContent
support.
In this chapter, we’re going to cover the following main...