DGtal-team / DGtal

Digital Geometry Tools and Algorithm Library
https://dgtal.org
GNU Lesser General Public License v3.0
370 stars 115 forks source link

Problem when using DGtal with Eigen from another project #924

Closed JacquesOlivierLachaud closed 10 years ago

JacquesOlivierLachaud commented 10 years ago

In DGtalConfig.cmake, the specific Eigen3 include_dirs are not added to the list of include directories. Then, when using DGtal from another project, using DEC package indicates missing Eigen include files. Suggest modifying DGtalConfig.cmake.in as follows:

IF(@EIGEN_FOUND_DGTAL@) ADD_DEFINITIONS("-DWITH_EIGEN ") SET(WITH_EIGEN 1) SET(DGTAL_INCLUDE_DIRS ${DGTAL_INCLUDE_DIRS} @EIGEN3_INCLUDE_DIR@ ) ENDIF(@EIGEN_FOUND_DGTAL@)

dcoeurjo commented 10 years ago

Agree. please do so (adding also the min version of Eigen if you've found it -- #925 --)