-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathqtLibModbus.pri
42 lines (35 loc) · 1.05 KB
/
qtLibModbus.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#-------------------------------------------------
#
# Project created by QtCreator 2013-07-02T14:27:22
#
#-------------------------------------------------
QT += network#just for QHostAddress
QTMB_PREFIX = ./qtLibModbus
QTMB_CONFIG = mbconfig.pri
SOURCES += \
$${QTMB_PREFIX}/mbconnection.cpp \
$${QTMB_PREFIX}/mbthreadedconnmanager.cpp
HEADERS += \
$${QTMB_PREFIX}/mbconnection.h \
$${QTMB_PREFIX}/mbthreadedconnmanager.h
INCLUDEPATH += $${QTMB_PREFIX}
hasConfig = false
exists($${QTMB_CONFIG}) {
message("QTMB: $${QTMB_CONFIG}")
include($${QTMB_CONFIG})
hasConfig = true
} else {
exists(../$${QTMB_CONFIG}) {
message("QTMB: " ../$${QTMB_CONFIG})
include(../$${QTMB_CONFIG})
hasConfig = true
}
}
#when libmodbus is installed in default dir, headers are located in modbus folder, libs in standard location
contains(hasConfig, true) {
message( "QTMB: Had overwritting config file." )
} else {
message("QTMB: no config overwrites. Assuming defaults.")
INCLUDEPATH += modbus
LIBS += -lmodbus
}