This forum has been archived. All content is frozen. Please use KDE Discuss instead.

CMake support

Tags: None
(comma "," separated)
daviddoria
Registered Member
Posts
46
Karma
0
OS

CMake support

Thu Apr 21, 2011 5:49 pm
Can someone from Eigen work with the CMake people to get some of these Find* files included (FindEigen3.cmake, FindUmfpack.cmake) in the CMake distribution? That would be much easier than having to copy them into each project which uses Eigen.

Also, FindEigen3.cmake doesn't seem to know about the 'unsupported' directory , so I have to do:

include_directories(${EIGEN3_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIR}/unsupported/)

Additionally, shouldn't the

include_directories(${EIGEN3_INCLUDE_DIR})

itself be done automatically when FIND_PACKAGE(Eigen3) works?

David
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: CMake support

Thu Apr 21, 2011 7:06 pm
daviddoria wrote:Can someone from Eigen work with the CMake people to get some of these Find* files included (FindEigen3.cmake, FindUmfpack.cmake) in the CMake distribution? That would be much easier than having to copy them into each project which uses Eigen.


yep, we should definitely do that, especially for the FindEigen*.cmake, not sure about the others.

Also, FindEigen3.cmake doesn't seem to know about the 'unsupported' directory , so I have to do:

include_directories(${EIGEN3_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIR}/unsupported/)



That's the intended usage. Otherwise the user would not even notice he is using "unsupported" stuffs.


Additionally, shouldn't the

include_directories(${EIGEN3_INCLUDE_DIR})

itself be done automatically when FIND_PACKAGE(Eigen3) works?



no, that would not be conforming with the standard cmake modules.
daviddoria
Registered Member
Posts
46
Karma
0
OS

Re: CMake support

Thu Apr 21, 2011 7:16 pm
I created a feature request here: http://eigen.tuxfamily.org/bz/show_bug.cgi?id=255

ggael - are you the one who would be the maintainer?


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora