Skip to content

Commit

Permalink
dbus include directories
Browse files Browse the repository at this point in the history
  • Loading branch information
wcbonner committed Aug 10, 2024
1 parent b6ae250 commit 19d34e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down

0 comments on commit 19d34e6

Please sign in to comment.