FindLibinput¶
Added in version 3.14.
Finds the libinput library which handles input devices in Wayland compositors and provides a generic X.Org input driver:
find_package(Libinput [<version>] [...])
Imported Targets¶
This module provides the following Imported Targets:
Libinput::LibinputTarget encapsulating the libinput library usage requirements, available only if library is found.
Result Variables¶
This module defines the following variables:
Libinput_FOUNDBoolean indicating whether the (requested version of) libinput library was found.
Libinput_VERSIONThe version of the libinput found.
Libinput_LIBRARIESThe libraries to link against to use the libinput library.
Libinput_INCLUDE_DIRSThe include directories containing headers needed to use the libinput library.
Libinput_COMPILE_OPTIONSCompile options needed to use the libinput library. These can be passed to the
target_compile_options()command, when not using theLibinput::Libinputimported target.
Examples¶
Finding the libinput library and linking it to a project target:
find_package(Libinput)
target_link_libraries(project_target PRIVATE Libinput::Libinput)