Skip to content

Commit

Permalink
Initial evdev testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwhat committed Aug 15, 2023
1 parent f5ef782 commit 71e720d
Show file tree
Hide file tree
Showing 8 changed files with 2,690 additions and 1 deletion.
13 changes: 12 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (WIN32 OR WIN64)
elseif (APPLE)
set(UIOHOOK_SOURCE_DIR "darwin")
else()
set(UIOHOOK_SOURCE_DIR "x11")
set(UIOHOOK_SOURCE_DIR "evdev")
endif()

add_library(uiohook
Expand Down Expand Up @@ -147,6 +147,17 @@ if(UNIX AND NOT APPLE)
target_include_directories(uiohook PRIVATE "${XTST_INCLUDE_DIRS}")
target_link_libraries(uiohook "${XTST_LDFLAGS}")

pkg_check_modules(XINPUT REQUIRED xi)
target_include_directories(uiohook PRIVATE "${XINPUT_INCLUDE_DIRS}")
target_link_libraries(uiohook "${XINPUT_LDFLAGS}")

pkg_check_modules(EVDEV REQUIRED libevdev)
target_include_directories(uiohook PRIVATE "${EVDEV_INCLUDE_DIRS}")
target_link_libraries(uiohook "${EVDEV_LDFLAGS}")

include(CMakePrintHelpers)
cmake_print_variables(EVDEV_INCLUDE_DIRS)

include(CheckLibraryExists)
check_library_exists(Xtst XRecordQueryVersion "" HAVE_XRECORD)

Expand Down
Loading

0 comments on commit 71e720d

Please sign in to comment.