projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1f958a
)
doc/user: Add instructions for using with CMake
author
Nicolas Fella
<nicolas.fella@gmx.de>
Tue, 4 May 2021 18:58:14 +0000
(20:58 +0200)
committer
Nicolas Fella
<nicolas.fella@gmx.de>
Tue, 4 May 2021 19:16:55 +0000
(21:16 +0200)
CMake provides a nice way to use libinput, let the world now.
Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
doc/user/building.rst
patch
|
blob
|
history
diff --git
a/doc/user/building.rst
b/doc/user/building.rst
index
1aff1a8
..
7e44e59
100644
(file)
--- a/
doc/user/building.rst
+++ b/
doc/user/building.rst
@@
-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: