fix(cv): 4.x error , shield the old algorithm temporarily when complie

This commit is contained in:
TinyOh 2019-02-13 10:05:38 +08:00
parent 13bdcf24bd
commit 63e9dda1b2

View File

@ -130,7 +130,7 @@ endif()
## camodocal ## camodocal
if(WITH_CAM_MODELS) if(WITH_CAM_MODELS AND (NOT WITH_OPENCV4))
set(EIGEN_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty) set(EIGEN_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty)
message(STATUS "EIGEN_INCLUDE_DIR: ${EIGEN_INCLUDE_DIR}") message(STATUS "EIGEN_INCLUDE_DIR: ${EIGEN_INCLUDE_DIR}")
@ -220,7 +220,7 @@ if(WITH_API)
src/mynteye/api/processor/rectify_processor_ocv.cc src/mynteye/api/processor/rectify_processor_ocv.cc
src/mynteye/api/config.cc src/mynteye/api/config.cc
) )
if(WITH_CAM_MODELS) if(WITH_CAM_MODELS AND (NOT WITH_OPENCV4))
list(APPEND MYNTEYE_SRCS list(APPEND MYNTEYE_SRCS
src/mynteye/api/processor/depth_processor.cc src/mynteye/api/processor/depth_processor.cc
src/mynteye/api/processor/points_processor.cc src/mynteye/api/processor/points_processor.cc