From 3d87e1f3fbf9b38e0e2d71ea87c3e22ff6c001b0 Mon Sep 17 00:00:00 2001 From: Gaspard-- Date: Fri, 29 Nov 2019 15:41:58 +0100 Subject: [PATCH] Changed cmake to properly use pkg-config to get gtk-layer-shell Due to how gtk-layer-shell installs itself, you may need to use ```sh PKGPKG_CONFIG_PATH=/usr/local/lib64/pkgconfig make -C build/debug ``` to build. --- CMakeLists.txt | 3 ++- README.md | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 93fbb1e..2bf495e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,10 +44,11 @@ add_library(albinos::uvw ALIAS uvw) ### find_package(PkgConfig REQUIRED) pkg_check_modules(GTK REQUIRED gtk+-3.0) +pkg_check_modules(GTK REQUIRED gtk-layer-shell-0) add_executable(albinos-service ${SOURCES_SERVICE}) add_executable(albinos-gui ${SOURCES_GUI}) -target_link_libraries(albinos-gui gtk-layer-shell) +target_link_libraries(albinos-gui GTK::gtk-layer-shell-0) target_link_libraries(albinos-gui ${GTK_LIBRARIES}) target_include_directories(albinos-gui PUBLIC ${GTK_INCLUDE_DIRS}) target_compile_options(albinos-gui PUBLIC ${GTK_CFLAGS_OTHER}) diff --git a/README.md b/README.md index ebfbb12..7ff449e 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,13 @@ cd - ``` The compilation may take a while. +Due to how gtk-layer-shell installs itself, you may need to use +```sh +PKGPKG_CONFIG_PATH=/usr/local/lib64/pkgconfig make +``` +instead of just `make` to build. + + ## Running To run the service, use: