Make the QtGui module an optional dependency

detect and link with it, if found
This commit is contained in:
Konstantin Ritt
2018-11-20 16:57:27 +03:00
parent a579f324d7
commit ca968dbb4e
2 changed files with 9 additions and 1 deletions

View File

@ -26,6 +26,10 @@ HEADERS += \
$$PWD/src/stream/time.h \
$$PWD/src/stream/geometry.h
qtHaveModule(gui) {
QT += gui
}
qtHaveModule(location) {
QT += location

View File

@ -1,4 +1,4 @@
QT += core gui
QT += core
TARGET = qmsgpack
CONFIG -= app_bundle
@ -46,6 +46,10 @@ STREAM_HEADERS_INSTALL = \
stream/geometry.h \
stream/time.h
qtHaveModule(gui) {
QT += gui
}
qtHaveModule(location) {
QT += location