Registered Member
|
I am working on an application that is part of a bigger application. My application needs to use Eigen, so i downloaded the zip file, but i took only the Eigen Folder from the rest (the rest being e.g. demo, test folder etc...). So, Eigen need not be installed , i'd like it to be part of the build.
I've been trying to do it, but since i'm new to CMake , i am having difficulty including a header only library. Help would be immensely appreciated. Note that Eigen has a CmakeLists.txt in Eigen folder, and it has /src folder having (*.h and *.cpp) related to Matrix operation etc... The structure of my program is as follow Myproject (folder) is composed of : + CmakeLists.txt + /Build + /Source The Source folder has bunch of my files (*.h and *.cpp) and the /Eigen (folder). what i did is :
When i cd to /Build and type (Cmake ../Source ) I get the following :
The CMakeLists.txt of the Eigen folder is :
|
Registered Member
|
Eigen is a header-only library, so you do not directly compile it, but copy it along your sources and then just include its headers.
There is nothing to be done with respect to CMake, unless you need to use any INCLUDE_DIRECTORIES command. |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]