summaryrefslogtreecommitdiffhomepage
path: root/tracker-wii/CMakeLists.txt
blob: b275fbebdc2d8dbe9ba4f118487e2f88066a7c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if(WIN32)
    include(opentrack-opencv)
    find_package(OpenCV QUIET)
    if(OpenCV_FOUND)
        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()