Wow, that was quick ;o) <div><br></div><div>thanks for the FindEigen2.cmake module. It works just fine.</div><div><br></div><div>Best regards,</div><div><br></div><div>Stefan<br><br><div class="gmail_quote">On Tue, Jan 25, 2011 at 12:19 AM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, Jan 24, 2011 at 6:15 PM, Stefan Dänzer <<a href="mailto:stefan.daenzer@gmail.com">stefan.daenzer@gmail.com</a>> wrote:<br>
> Hi all,<br>
> I have searched for the correct way to include the Eigen2 linear algebra<br>
> library in my CMake based project. But doing a search has not brought up a<br>
> suitable result. Has anyone used Eigen2 in their project? A CMake sample<br>
> script including Eigen2 would be most helpful.<br>
<br>
</div>We make extensive use of Eigen2 in Avogadro.<br>
<br>
<a href="http://avogadro.openmolecules.net/" target="_blank">http://avogadro.openmolecules.net/</a><br>
<br>
Helpful parts are our FindEigen CMake module,<br>
<br>
<a href="https://github.com/cryos/avogadro/blob/master/cmake/modules/FindEigen2.cmake" target="_blank">https://github.com/cryos/avogadro/blob/master/cmake/modules/FindEigen2.cmake</a><br>
<br>
As it is header only you just need to call,<br>
<br>
include_directories("${EIGEN2_INCLUDE_DIR}")<br>
<br>
to add it to the compiler include path, and you should be able to use<br>
it as expected.<br>
<font color="#888888"><br>
Marcus<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>--<br>Stefan Daenzer <br>Körnerplatz 8<br>04107 Leipzig<br><br>Tel.: +49-157-84993879<br><br>"Work like you don't need the money, love like you've never been hurt and dance like no one is watching." - Randall G Leighton<br>
</div>