From 19d34e6e3005dcb67ddd5274ec50125c97585574 Mon Sep 17 00:00:00 2001 From: William C Bonner Date: Sat, 10 Aug 2024 12:42:13 -0700 Subject: [PATCH] dbus include directories --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13e78d3..ab976a5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,9 @@ configure_file( goveebttemplogger-version.h.in goveebttemplogger-version.h) +include( FindPkgConfig ) +pkg_check_modules( dbus REQUIRED dbus-1 ) + # Add source to this project's executable. add_executable (goveebttemplogger goveebttemplogger.cpp @@ -54,7 +57,7 @@ endif() target_include_directories(goveebttemplogger PUBLIC "${PROJECT_BINARY_DIR}" ${EXTRA_INCLUDES} - "/usr/include/dbus-1.0;/usr/lib/aarch64-linux-gnu/dbus-1.0/include/" + ${dbus_INCLUDE_DIRS} ) if(EXISTS "/etc/rpi-issue")