summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorkuzulis <scapig2@yandex.ru>2011-09-21 11:48:49 +0400
committerkuzulis <kuzulis@myhost.(none)>2011-09-21 11:48:49 +0400
commit60541718144f9a51451564fbf9ac9bcc0037ec4f (patch)
tree10b98262db14d3ba8435e4f6683030476cafb706 /tests
parent587d372568313502edd757d81647e94c3f40e2d8 (diff)
downloadqtserialport-60541718144f9a51451564fbf9ac9bcc0037ec4f.tar.gz
When compiling a library for Linux adds the ability to support Udev.
To do this, *.pro file to write: DEFINES += HAVE_UDEV. Otherwise, the library will build without Udev.
Diffstat (limited to 'tests')
-rw-r--r--tests/guiapp/guiapp.pro7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/guiapp/guiapp.pro b/tests/guiapp/guiapp.pro
index cb74ab5..47eb76e 100644
--- a/tests/guiapp/guiapp.pro
+++ b/tests/guiapp/guiapp.pro
@@ -1,6 +1,8 @@
QT += core gui
TEMPLATE = app
+DEFINES += HAVE_UDEV
+
INCLUDEPATH += \
../../include \
../../src
@@ -34,5 +36,8 @@ win32 {
!wince*: LIBS += -lsetupapi -luuid -ladvapi32
}
unix:!macx {
- #LIBS += -ludev
+ #contains( DEFINES, HAVE_UDEV ) {
+ # LIBS += -ludev
+ #}
}
+