# OpenCV support with extra components.
FIND_PACKAGE(OpenCV REQUIRED COMPONENTS core imgproc calib3d)

ADD_LIBRARY(stereo_rectification_events SHARED stereo_rectification.cpp stereo_rectification_events.cpp)

SET_TARGET_PROPERTIES(stereo_rectification_events PROPERTIES PREFIX "dv_")

TARGET_LINK_LIBRARIES(stereo_rectification_events PRIVATE dv::sdk ${OpenCV_LIBS})

INSTALL(TARGETS stereo_rectification_events DESTINATION ${DV_MODULES_DIR})

ADD_LIBRARY(stereo_rectification_frames SHARED stereo_rectification.cpp stereo_rectification_frames.cpp)

SET_TARGET_PROPERTIES(stereo_rectification_frames PROPERTIES PREFIX "dv_")

TARGET_LINK_LIBRARIES(stereo_rectification_frames PRIVATE dv::sdk ${OpenCV_LIBS})

INSTALL(TARGETS stereo_rectification_frames DESTINATION ${DV_MODULES_DIR})
