summaryrefslogtreecommitdiffhomepage
path: root/protocol-libevdev/CMakeLists.txt
blob: 960a1271dd2b9f473edcef602592dbe489da2e2e (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)
        opentrack_boilerplate(opentrack-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()