cmake-cookbook | CMake Cookbook recipes | Build Tool library
kandi X-RAY | cmake-cookbook Summary
kandi X-RAY | cmake-cookbook Summary
This repository collects sources for the recipes contained in the CMake Cookbook published by Packt and authored by Radovan Bast and Roberto Di Remigio.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cmake-cookbook
cmake-cookbook Key Features
cmake-cookbook Examples and Code Snippets
Community Discussions
Trending Discussions on cmake-cookbook
QUESTION
I am following chapter-02/recipe-06 in "CMake Cookbook". This particular example requires the Eigen C++ libraries.
I attempted to build the example and got the error that Eigen was not found.
...ANSWER
Answered 2019-Feb-05 at 20:03There are 2 "origins" of XXXConfig.cmake
files, used internally by find_package()
call.
Usually, XXXConfig.cmake
file is produced when the project is installed, and the file contains information about installed libraries and headers.
But CMake provides also an export() command, which allows to export build tree.
export(PACKAGE )
Store the current build directory in the CMake user package registry for package
. The
find_package
command may consider the directory while searching for package.
Eigen's CMakeLists.txt
uses export()
command, so the project becomes detectable with find_package
just after running cmake
for Eigen.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cmake-cookbook
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page