summaryrefslogtreecommitdiffhomepage
path: root/tracker-trackhat/CMakeLists.txt
blob: 483bf4c9f63e6d8ca87d3db036e2fbaa49749e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if(WIN32)
    include(opentrack-opencv)
    find_package(OpenCV QUIET)
    if(OpenCV_FOUND)
        foreach(k core imgproc)
            otr_install_lib("opencv_${k}" "${opentrack-libexec}")
        endforeach()
        set(SDK_TRACKHAT_SENSOR CACHE PATH "")
        if(SDK_TRACKHAT_SENSOR)
            include_directories("${SDK_TRACKHAT_SENSOR}/include" ${OpenCV_INCLUDE_DIRS})
            link_directories("${SDK_TRACKHAT_SENSOR}/lib")
            link_libraries(opencv_imgproc opencv_core opentrack-tracker-pt-base track-hat)
            otr_module(tracker-trackhat)
        endif()
    endif()
endif()