summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-opencv.cmake
blob: b8c3701c53068fa8a6b0453dfad7a62bb1ddcbf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
include_guard(GLOBAL)

include(opentrack-boilerplate)
find_package(OpenCV QUIET)

function(otr_install_opencv_libs)
    foreach(k core features2d calib3d flann imgcodecs imgproc videoio)
        otr_install_lib("opencv_${k}" "${opentrack-hier-pfx}")
    endforeach()
endfunction()

if(TARGET opencv_core)
    otr_install_opencv_libs()
endif()