summaryrefslogtreecommitdiffhomepage
path: root/tracker-wii/CMakeLists.txt
blob: 00cc2f9f0bab7edc48bdcb527932935ca96de7c7 (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} 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()