Make the QtGui module an optional dependency
detect and link with it, if found
This commit is contained in:
1 parent
a579f324d7
commit
ca968dbb4e
2 files changed
+9
-1
No files matched your search
@@ -26,6 +26,10 @@ HEADERS += \
|
|||||||
$$PWD/src/stream/time.h \
|
$$PWD/src/stream/time.h \
|
||||||
$$PWD/src/stream/geometry.h
|
$$PWD/src/stream/geometry.h
|
||||||
|
|
||||||
|
qtHaveModule(gui) {
|
||||||
|
QT += gui
|
||||||
|
}
|
||||||
|
|
||||||
qtHaveModule(location) {
|
qtHaveModule(location) {
|
||||||
QT += location
|
QT += location
|
||||||
|
|
||||||
|
|||||||
+5
-1
@@ -1,4 +1,4 @@
|
|||||||
QT += core gui
|
QT += core
|
||||||
|
|
||||||
TARGET = qmsgpack
|
TARGET = qmsgpack
|
||||||
CONFIG -= app_bundle
|
CONFIG -= app_bundle
|
||||||
@@ -46,6 +46,10 @@ STREAM_HEADERS_INSTALL = \
|
|||||||
stream/geometry.h \
|
stream/geometry.h \
|
||||||
stream/time.h
|
stream/time.h
|
||||||
|
|
||||||
|
qtHaveModule(gui) {
|
||||||
|
QT += gui
|
||||||
|
}
|
||||||
|
|
||||||
qtHaveModule(location) {
|
qtHaveModule(location) {
|
||||||
QT += location
|
QT += location
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user