On Mon, Jan 24, 2011 at 6:15 PM, Stefan Dänzer <stefan.daen...@gmail.com> wrote: > Hi all, > I have searched for the correct way to include the Eigen2 linear algebra > library in my CMake based project. But doing a search has not brought up a > suitable result. Has anyone used Eigen2 in their project? A CMake sample > script including Eigen2 would be most helpful.
We make extensive use of Eigen2 in Avogadro. http://avogadro.openmolecules.net/ Helpful parts are our FindEigen CMake module, https://github.com/cryos/avogadro/blob/master/cmake/modules/FindEigen2.cmake As it is header only you just need to call, include_directories("${EIGEN2_INCLUDE_DIR}") to add it to the compiler include path, and you should be able to use it as expected. Marcus _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake