Skip to content

Commit

Permalink
ddcui.pro:
Browse files Browse the repository at this point in the history
- test that libddcutil version at least 0.9.6
  • Loading branch information
rockowitz committed Oct 6, 2019
1 parent a8e089a commit fa3eb11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ddcui.pro
Expand Up @@ -231,6 +231,12 @@ CONFIG += link_pkgconfig
# PKGCONFIG += ddcutil

# Directly calling pkg-config works:
# PKG_OK=FALSE
system(pkg-config --atleast-version 0.9.6 ddcutil):PKG_OK=TRUE
message(PKG_OK: $$PKG_OK)
equals(PKG_OK, FALSE) {
error("libddcutil version must be at least 0.9.6")
}
PKGCONFIG_LIBS = $$system(pkg-config --libs ddcutil)
GLIB_LIBS = $$system(pkg-config --libs glib-2.0)
PKGCONFIG_CFLAGS = $$system(pkg-config --cflags ddcutil)
Expand Down

0 comments on commit fa3eb11

Please sign in to comment.