diff options
author | Nicolas Fella <nicolas.fella@gmx.de> | 2021-05-04 20:58:14 +0200 |
---|---|---|
committer | Nicolas Fella <nicolas.fella@gmx.de> | 2021-05-04 21:16:55 +0200 |
commit | 20b2123fbc81ba41c74f66a95f2d71b7d866a677 (patch) | |
tree | b01dadb4409b7c5ac5c7436b008f2f621a6299df | |
parent | b1f958a178230c728b589436046f47eed8faa691 (diff) |
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>
-rw-r--r-- | doc/user/building.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/user/building.rst b/doc/user/building.rst index 1aff1a8a..7e44e594 100644 --- 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: |