added Eigen3 support

pull/13383/head
Vadim Pisarevsky 14 years ago
parent d511e62021
commit caa3076018
  1. 5
      CMakeLists.txt

@ -296,7 +296,7 @@ if(APPLE)
endif() endif()
set(WITH_TBB OFF CACHE BOOL "Include TBB support") 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") set(WITH_CUDA OFF CACHE BOOL "Include NVidia Cuda Runtime support")
if(WIN32) if(WIN32)
@ -689,7 +689,8 @@ endif()
if(WITH_EIGEN2) if(WITH_EIGEN2)
find_path(EIGEN2_INCLUDE_PATH "Eigen/Core" find_path(EIGEN2_INCLUDE_PATH "Eigen/Core"
PATHS "/usr/local/include/eigen2" "/opt/include/eigen2" "/usr/include/eigen2" 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) if(EIGEN2_INCLUDE_PATH)
include_directories(${EIGEN2_INCLUDE_PATH}) include_directories(${EIGEN2_INCLUDE_PATH})
set(HAVE_EIGEN2 1) set(HAVE_EIGEN2 1)

Loading…
Cancel
Save