Getting ready

We will show how to extract the archive bundling the Eigen library and use the extracted source files to compile our project. In this recipe, we will reuse the linear algebra example linear-algebra.cpp from Chapter 3, Detecting External Libraries and Programs, Recipe 7, Detecting the Eigen library. The recipe also assumes that the archive containing the source code for Eigen has been downloaded in the same directory as the project itself.

Get CMake Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.