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

Minimal CMake
By :

Before we wrap up talking about installing, there’s one more topic that is useful to cover. So far, we’ve talked exclusively about finding dependencies using config mode, but there is an alternative mode we briefly touched on in Chapter 6, Installing Dependencies and ExternalProject_Add, called Module mode. Module mode is useful when integrating with libraries that are not natively built with CMake (so config files cannot be automatically generated for us).
In ch7/part-7/cmake
, a new file has been added called Findmc-gol.cmake
, which acts as a find module file for the mc-gol
library we’ll install in ch7/part-7/lib/gol/install
. The find module file is technically redundant, as we can use the generated mc-gol-config.cmake
file in config mode as before, however, imagine we’d built this library using a separate tool, and know where the build artifacts (library files) and header files are found.
To bring the mc-gol
library into...