Registered Member
|
I tried to use cmake to link my program to Eigen by using:
FIND_PACKAGE(Eigen REQUIRED); INCLUDE(${Eigen_USE_FILE}) but when I specified by ~/bin/Eigen for Eigen_DIR, it says it can't find EigenConfig.cmake. Am I doing something wrong? Thanks, David |
Moderator
|
You have to copy the path_to_eigen/cmake/FindEigen3.cmake file in your project tree, e.g., in your_project_path/cmake and ship it with the source.
Then in your CMakeLists.txt file, do something like:
As an alternative, you can also run cmake this way: cmake .. -DCMAKE_MODULE_PATH=/path/to/a/directory/containing_the_FindEigen3.cmake_file/ until the FindEigen3.cmake module is shipped with cmake itself. |
Registered Member
|
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]