Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Tutorial: Patch cmake for visual studio and eigen (or any other platform and library)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Tutorial: Patch cmake for visual studio and eigen (or any other platform and library)


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Tutorial: Patch cmake for visual studio and eigen (or any other platform and library)
  • Date: Tue, 20 Mar 2012 18:16:09 +0100

On 03/17/2012 02:28 AM, Zohar wrote:

I tried to add eigen3 support to cgal using the cmake-gui for vs2010, but
with no avail. No matter what I set in the environment variables, cmake kept
complaining that it couldn't find eigen include dir and version. Setting
them manually in cmake didn't help either (the internal script just rewrote
them). So I searched for this notorious script, FindEigen3.cmake, and I
rewrote it with:
That's quite strange, this has been tested on windows.

I guess you already tried that:
cmake -DEIGEN3_INCLUDE_DIR=/path/to/eigen
where /path/to/eigen contains signature_of_eigen3_matrix_library

Sebastien.


set(EIGEN3_FOUND TRUE)
set(EIGEN3_VERSION_OK TRUE)
set(EIGEN3_USE_FILE "UseEigen3")
set(EIGEN3_VERSION "3.0.92")
set(Eigen3_FIND_VERSION "3.0.92")
set(EIGEN3_INCLUDE_DIR "c:/prj-external-libs/eigen-eigen/")

The comments on the top of the original FindEigen3.cmake hint which
variables are going to be set, and if you look for the string "set(" you
might find additional variables that cmake is going to complain about.

I think that this method should work for any stubborn library on any
platform.




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Tutorial-Patch-cmake-for-visual-studio-and-eigen-or-any-other-platform-and-library-tp4479845p4479845.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.16.

Top of Page