summaryrefslogtreecommitdiffhomepage
path: root/tracker-wii/CMakeLists.txt
blob: fb8403858adbc45cd3613af8a34d7fe6c4211a28 (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()
        add_subdirectory(wiiyourself)
        otr_module(tracker-wii)
        target_link_libraries(${self} opencv_imgproc opentrack-tracker-pt-base opentrack-wiiyourself bthprops)
        if(MINGW32)
            target_link_libraries(${self} hid)
        endif()
        target_include_directories(${self} PRIVATE "${CMAKE_SOURCE_DIR}/tracker-pt")
    endif()
endif()