summaryrefslogtreecommitdiffhomepage
path: root/proto-libevdev/CMakeLists.txt
blob: 04f6924e464ff3a65c1938341761a74eb6a2f86c (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})
        target_include_directories(opentrack-proto-libevdev SYSTEM PUBLIC ${libevdev_INCLUDE_DIRS})
    endif()
endif()