Using Eigen Lib in my Cmake project?
问题 I am having difficulty using a header-only library (Eigen) in my CMake project. When i take off all the portion related to Eigen library it compiles, but not sure how to build with (Eigen). 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