summaryrefslogtreecommitdiffhomepage
path: root/video-opencv/CMakeLists.txt
blob: 0b2460a4de21a1b56bb291c003871d1ec1a311de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
include(opentrack-opencv)
find_package(OpenCV QUIET)

if(OpenCV_FOUND)
    foreach(k core videoio imgcodecs imgproc)
        otr_install_lib("opencv_${k}" "${opentrack-libexec}")
    endforeach()
    otr_module(video-opencv)
    target_link_libraries(${self} opencv_core opencv_imgcodecs opencv_videoio opentrack-video)
    if(WIN32)
        target_link_libraries(${self} strmiids)
    endif()
endif()