added Eigen3 support

This commit is contained in:
Vadim Pisarevsky 2010-10-01 09:13:35 +00:00
parent d511e62021
commit caa3076018

View File

@ -296,7 +296,7 @@ if(APPLE)
endif()
set(WITH_TBB OFF CACHE BOOL "Include TBB support")
set(WITH_EIGEN2 ON CACHE BOOL "Include Eigen2 support")
set(WITH_EIGEN2 ON CACHE BOOL "Include Eigen2/Eigen3 support")
set(WITH_CUDA OFF CACHE BOOL "Include NVidia Cuda Runtime support")
if(WIN32)
@ -689,7 +689,8 @@ endif()
if(WITH_EIGEN2)
find_path(EIGEN2_INCLUDE_PATH "Eigen/Core"
PATHS "/usr/local/include/eigen2" "/opt/include/eigen2" "/usr/include/eigen2"
DOC "The path to Eigen2 headers")
"/usr/local/include/eigen3" "/opt/include/eigen3" "/usr/include/eigen3"
DOC "The path to Eigen2/Eigen3 headers")
if(EIGEN2_INCLUDE_PATH)
include_directories(${EIGEN2_INCLUDE_PATH})
set(HAVE_EIGEN2 1)