-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBatteryWatch.pro
executable file
·75 lines (54 loc) · 1.29 KB
/
BatteryWatch.pro
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# DEFINES += LICENSE_NOT_REQUIRED
DEFINES += LICENSE_NOT_REQUIRED
greaterThan(QT_MAJOR_VERSION, 4) {
QT += widgets
}
QMAKE_EXTRA_TARGETS += version
CONFIG += qt \
thread \
c++11
QT += network
QT -= testlib
DESTDIR = out
MOC_DIR = tmp/moc
UI_DIR = tmp/ui
INCLUDEPATH += tmp/ui
win32: LIBS += -static-libgcc -static-libstdc++
win32: LIBS += -L$$PWD/./ -lpaho-mqtt3c
INCLUDEPATH += $$PWD/.
DEPENDPATH += $$PWD/.
CONFIG(debug, debug|release) {
TARGET = batterywatch.debug
OBJECTS_DIR = tmp/debug
RCC_DIR = tmp/debug/rcc
}
CONFIG(release, debug|release) {
TARGET = batterywatch
OBJECTS_DIR = tmp/release
RCC_DIR = tmp/release/rcc
QT -= testlib
}
unix {
}
# Define how to create version.h
win32 {
version.target = version.h
equals(QMAKE_CXX, g++):version.commands = versionit.bat
!equals(QMAKE_CXX, g++):version.commands = ./subwcrev.sh "version.tmpl" "version.h"
version.depends = FORCE
}
FORMS += batterywatch.ui \
preferences.ui \
HEADERS = batterywatch.h \
preferences.h \
MQTTClient.h \
MQTTClientPersistence.h \
MQTTProperties.h \
MQTTReasonCodes.h \
MQTTSubscribeOpts.h \
wemoclient.h \
SOURCES = main.cpp \
batterywatch.cpp \
preferences.cpp \
wemoclient.cpp \
RESOURCES = batterywatch.qrc