-
Notifications
You must be signed in to change notification settings - Fork 1
/
mtb-daemon.pro
69 lines (60 loc) · 1.35 KB
/
mtb-daemon.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
TARGET = mtb-daemon
TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
SOURCES += \
src/main.cpp \
src/mtbusb/mtbusb.cpp \
src/mtbusb/mtbusb-send.cpp \
src/mtbusb/mtbusb-receive.cpp \
src/mtbusb/mtbusb-hist.cpp \
src/mtbusb/mtbusb-common.cpp \
src/mtbusb/mtbusb-win-com-discover.cpp \
src/server.cpp \
src/logging.cpp \
src/qjsonsafe.cpp \
src/modules/module.cpp \
src/modules/uni.cpp \
src/modules/unis.cpp \
src/modules/rc.cpp
HEADERS += \
src/main.h \
src/mtbusb/mtbusb-win-com-discover.h \
src/mtbusb/mtbusb.h \
src/mtbusb/mtbusb-commands.h \
src/mtbusb/mtbusb-common.h \
src/server.h \
src/logging.h \
src/qjsonsafe.h \
src/modules/module.h \
src/modules/uni.h \
src/modules/unis.h \
src/modules/rc.h \
src/errors.h \
src/utils.h \
lib/termcolor.h
INCLUDEPATH += \
src \
lib \
src/mtbusb \
src/modules
CONFIG += c++17
QMAKE_CXXFLAGS += -Wall -Wextra -pedantic -std=c++17
win32 {
QMAKE_LFLAGS += -Wl,--kill-at
QMAKE_CXXFLAGS += -enable-stdcall-fixup
LIBS += -lsetupapi
}
win64 {
QMAKE_LFLAGS += -Wl,--kill-at
QMAKE_CXXFLAGS += -enable-stdcall-fixup
LIBS += -lsetupapi
}
QT -= gui
QT += core serialport network
VERSION_MAJOR = 1
VERSION_MINOR = 6
DEFINES += "VERSION_MAJOR=$$VERSION_MAJOR" "VERSION_MINOR=$$VERSION_MINOR"
#Target version
VERSION = $${VERSION_MAJOR}.$${VERSION_MINOR}
DEFINES += "VERSION=\\\"$${VERSION}\\\""