From 5dea6927ac38d6bf2562c6d8bbe842b4f184a999 Mon Sep 17 00:00:00 2001 From: "Shawn W. Dunn" Date: Fri, 1 Nov 2024 10:31:53 -0700 Subject: [PATCH] Use PkgConfig to find development headers --- src/common/events/CMakeLists.txt | 1 + src/platforms/evdev/CMakeLists.txt | 2 ++ tests/unit-tests/CMakeLists.txt | 1 + 3 files changed, 4 insertions(+) diff --git a/src/common/events/CMakeLists.txt b/src/common/events/CMakeLists.txt index 515b48795a3..e80bfd08a7d 100644 --- a/src/common/events/CMakeLists.txt +++ b/src/common/events/CMakeLists.txt @@ -39,4 +39,5 @@ add_library( target_link_libraries(mirevents PUBLIC mircore + PkgConfig::XKBCOMMON ) diff --git a/src/platforms/evdev/CMakeLists.txt b/src/platforms/evdev/CMakeLists.txt index 5658c980c0d..48d8f73995e 100644 --- a/src/platforms/evdev/CMakeLists.txt +++ b/src/platforms/evdev/CMakeLists.txt @@ -13,6 +13,7 @@ target_link_libraries(mirevdevutilsobjects PUBLIC mircommon mircore + PkgConfig::LIBINPUT ) add_library(mirplatforminputevdevobjects OBJECT @@ -27,6 +28,7 @@ target_link_libraries(mirplatforminputevdevobjects mirplatform mircommon mircore + PkgConfig::LIBINPUT ) add_library(mirplatforminputevdev MODULE diff --git a/tests/unit-tests/CMakeLists.txt b/tests/unit-tests/CMakeLists.txt index f297e1fb503..88e161d7669 100644 --- a/tests/unit-tests/CMakeLists.txt +++ b/tests/unit-tests/CMakeLists.txt @@ -187,6 +187,7 @@ target_link_libraries( mircommon Boost::system + PkgConfig::LIBINPUT PkgConfig::WAYLAND_SERVER ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. )