RE: [eigen] cmake config files

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]





From: gael.guennebaud@xxxxxxxxx
Date: Tue, 8 Oct 2013 12:09:06 +0200
Subject: Re: [eigen] cmake config files
To: eigen@xxxxxxxxxxxxxxxxxxxx


Hi,

thank you for the patch, but I'm worried about how cmake can find the respective UseEigen3.cmake and Eigen3Config.cmake files?

cheers,
Gael


On Mon, Oct 7, 2013 at 12:16 PM, xantares 09 <xantares09@xxxxxxxxxxx> wrote:
Hi,

Here is a patch to add cmake config files.

This way eigen would be easily used through another cmake project:
you can now write find_package(Eigen3 NO_MODULE), ie without embedding a FindEigen3.cmake module.

Regards,

x.


Here's the trick, find_package can swith to 'config' mode and look  for a file called "<name>Config.cmake" or "<lower-case-name>-config.cmake" for each name specified, in
<prefix>/(lib/<arch>|lib|share)/cmake/<name>*/, that's where I told cmake to install them.

See for yourlself:
http://cmake.org/cmake/help/v2.8.11/cmake.html#command:find_package

xan.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/