summaryrefslogtreecommitdiffhomepage
path: root/proto-libevdev/CMakeLists.txt
blob: f2809c93e3f2d178a7bacd6aa09fc0e9aa5743d2 (plain)
1
2
3
4
5
6
7
8
9
10
if(LINUX OR APPLE)
    set(SDK_ENABLE_LIBEVDEV FALSE CACHE BOOL "libevdev virtual joystick protocol support")
    if(SDK_ENABLE_LIBEVDEV)
        include(FindPkgConfig)
        otr_module(proto-libevdev)
        pkg_check_modules(libevdev REQUIRED QUIET libevdev)
        target_link_libraries(opentrack-proto-libevdev ${libevdev_LIBRARIES})
        include_directories(opentrack-proto-libevdev SYSTEM PUBLIC ${libevdev_INCLUDE_DIRS})
    endif()
endif()