include (../xcomposite_share/xcomposite_share.pri)
-LIBS += -lXcomposite
+!contains(QT_CONFIG, no-pkg-config) {
+ CONFIG += link_pkgconfig
+ PKGCONFIG += xcomposite gl x11
+} else {
+ LIBS += -lXcomposite -lGL -lX11
+}
+
SOURCES += \
$$PWD/qwaylandxcompositeglxcontext.cpp \
$$PWD/qwaylandxcompositeglxintegration.cpp \