2012-05-25 15:12:02 +02:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Detect other 3rd-party performance and math libraries
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# --- TBB ---
|
|
|
|
if(WITH_TBB)
|
2012-09-15 13:45:27 +02:00
|
|
|
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVDetectTBB.cmake")
|
2012-05-25 15:12:02 +02:00
|
|
|
endif(WITH_TBB)
|
|
|
|
|
2012-10-10 13:36:32 +02:00
|
|
|
# --- C= ---
|
|
|
|
if(WITH_CSTRIPES)
|
|
|
|
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVDetectCStripes.cmake")
|
|
|
|
endif(WITH_CSTRIPES)
|
|
|
|
|
2012-05-25 15:12:02 +02:00
|
|
|
# --- IPP ---
|
|
|
|
ocv_clear_vars(IPP_FOUND)
|
|
|
|
if(WITH_IPP)
|
|
|
|
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVFindIPP.cmake")
|
|
|
|
if(IPP_FOUND)
|
|
|
|
add_definitions(-DHAVE_IPP)
|
|
|
|
ocv_include_directories(${IPP_INCLUDE_DIRS})
|
|
|
|
link_directories(${IPP_LIBRARY_DIRS})
|
|
|
|
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} ${IPP_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
endif(WITH_IPP)
|
|
|
|
|
|
|
|
# --- CUDA ---
|
|
|
|
if(WITH_CUDA)
|
2012-09-15 13:45:27 +02:00
|
|
|
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVDetectCUDA.cmake")
|
2012-05-25 15:12:02 +02:00
|
|
|
endif(WITH_CUDA)
|
|
|
|
|
|
|
|
# --- Eigen ---
|
|
|
|
if(WITH_EIGEN)
|
|
|
|
find_path(EIGEN_INCLUDE_PATH "Eigen/Core"
|
2012-10-23 13:12:39 +02:00
|
|
|
PATHS /usr/local /opt /usr $ENV{EIGEN_ROOT}/include ENV ProgramFiles ENV ProgramW6432
|
2012-05-25 15:12:02 +02:00
|
|
|
PATH_SUFFIXES include/eigen3 include/eigen2 Eigen/include/eigen3 Eigen/include/eigen2
|
2012-09-10 16:14:32 +02:00
|
|
|
DOC "The path to Eigen3/Eigen2 headers"
|
|
|
|
CMAKE_FIND_ROOT_PATH_BOTH)
|
2012-05-25 15:12:02 +02:00
|
|
|
|
|
|
|
if(EIGEN_INCLUDE_PATH)
|
|
|
|
ocv_include_directories(${EIGEN_INCLUDE_PATH})
|
|
|
|
ocv_parse_header("${EIGEN_INCLUDE_PATH}/Eigen/src/Core/util/Macros.h" EIGEN_VERSION_LINES EIGEN_WORLD_VERSION EIGEN_MAJOR_VERSION EIGEN_MINOR_VERSION)
|
|
|
|
set(HAVE_EIGEN 1)
|
|
|
|
endif()
|
|
|
|
endif(WITH_EIGEN)
|
|
|
|
|
|
|
|
# --- Clp ---
|
|
|
|
# Ubuntu: sudo apt-get install coinor-libclp-dev coinor-libcoinutils-dev
|
|
|
|
ocv_clear_vars(HAVE_CLP)
|
|
|
|
if(WITH_CLP)
|
|
|
|
if(UNIX)
|
|
|
|
PKG_CHECK_MODULES(CLP clp)
|
|
|
|
if(CLP_FOUND)
|
|
|
|
set(HAVE_CLP TRUE)
|
|
|
|
if(NOT ${CLP_INCLUDE_DIRS} STREQUAL "")
|
|
|
|
ocv_include_directories(${CLP_INCLUDE_DIRS})
|
|
|
|
endif()
|
|
|
|
link_directories(${CLP_LIBRARY_DIRS})
|
|
|
|
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} ${CLP_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT CLP_FOUND)
|
|
|
|
find_path(CLP_INCLUDE_PATH "coin"
|
|
|
|
PATHS "/usr/local/include" "/usr/include" "/opt/include"
|
|
|
|
DOC "The path to Clp headers")
|
|
|
|
if(CLP_INCLUDE_PATH)
|
|
|
|
ocv_include_directories(${CLP_INCLUDE_PATH} "${CLP_INCLUDE_PATH}/coin")
|
|
|
|
get_filename_component(_CLP_LIBRARY_DIR "${CLP_INCLUDE_PATH}/../lib" ABSOLUTE)
|
|
|
|
set(CLP_LIBRARY_DIR "${_CLP_LIBRARY_DIR}" CACHE PATH "Full path of Clp library directory")
|
|
|
|
link_directories(${CLP_LIBRARY_DIR})
|
|
|
|
if(UNIX)
|
|
|
|
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} Clp CoinUtils m)
|
|
|
|
else()
|
2012-10-08 20:24:38 +02:00
|
|
|
if(MINGW)
|
|
|
|
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} Clp CoinUtils)
|
|
|
|
else()
|
|
|
|
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} libClp libCoinUtils)
|
|
|
|
endif()
|
2012-05-25 15:12:02 +02:00
|
|
|
endif()
|
|
|
|
set(HAVE_CLP TRUE)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif(WITH_CLP)
|