Get Events from evdev

This commit is contained in:
Florian Märkl 2020-06-21 21:30:46 +02:00
commit d9d89f7122
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
6 changed files with 108 additions and 10 deletions

View file

@ -0,0 +1,26 @@
# Provides: Evdev::libevdev
set(_prefix Evdev)
set(_target "${_prefix}::libevdev")
find_package(PkgConfig REQUIRED)
pkg_check_modules("${_prefix}" libevdev)
function(resolve_location)
endfunction()
if(${_prefix}_FOUND)
add_library("${_target}" INTERFACE IMPORTED)
target_link_libraries("${_target}" INTERFACE ${${_prefix}_LIBRARIES})
target_include_directories("${_target}" INTERFACE ${${_prefix}_INCLUDE_DIRS})
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args("${_prefix}"
REQUIRED_VARS "${_prefix}_LIBRARIES"
VERSION_VAR "${_prefix}_VERSION")
unset(_prefix)
unset(_target)