mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 18:10:28 +01:00
doc/user: Add instructions for using with CMake
CMake provides a nice way to use libinput, let the world now. Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
This commit is contained in:
parent
b1f958a178
commit
20b2123fbc
1 changed files with 5 additions and 0 deletions
|
|
@ -284,6 +284,11 @@ Software that uses meson should use the ``dependency()`` function: ::
|
|||
pkgconfig = import('pkgconfig')
|
||||
dep_libinput = dependency('libinput')
|
||||
|
||||
Software that uses CMake should use: ::
|
||||
|
||||
find_package(Libinput)
|
||||
target_link_libraries(myprogram PRIVATE Libinput::Libinput)
|
||||
|
||||
Otherwise, the most rudimentary way to compile and link a program against
|
||||
libinput is:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue