code-iai / iai_kinect2

Tools for using the Kinect One (Kinect v2) in ROS
Apache License 2.0
879 stars 519 forks source link

'FindEigen3.cmake' for finding Eigen #437

Closed christian-rauch closed 7 years ago

christian-rauch commented 7 years ago

Adds FindEigen3.cmake to find Eigen library in kinect2_registration. Source: https://github.com/RainerKuemmerle/g2o/blob/master/cmake_modules/FindEigen3.cmake

bbferka commented 7 years ago

@christian-rauch which version of ROS/Ubuntu are you using? Eigen ships a CMake Module and in older times when it did not this was done through the cmake_modules package. [link]

I just double checked on a 14.04 machine and /usr/share/cmake-2.8/Modules already contains the FindEigen3.cmake

christian-rauch commented 7 years ago

You are right. FindEigen3.cmake comes with libeigen3-dev but I had a never package version installed (from another source) which does not provide this file.