-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Minimal CMake
By :
In this chapter, we’re going to dive into installing dependencies for our project. Up until now, all the libraries we’ve used have been built at the same time as the main application. Even when using FetchContent to download other libraries, they still ended up in the same build folder. Installing is a bit different. With installing, we keep the library entirely separate from the application when building it. There’s then a second step we take to install it in a location where our application can find it. Installing might sound mysterious, but it’s essentially just copying a collection of files from one location to another (albeit following an established convention).
Once we’re comfortable building and installing libraries manually, we’ll look at how to leverage ExternalProject_Add to significantly reduce the manual steps required when installing. This will allow us to integrate external libraries...