-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrcs-xn.pro
71 lines (61 loc) · 1.53 KB
/
rcs-xn.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
TARGET = rcs-xn
TEMPLATE = lib
DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += \
src/rcs-xn.cpp \
src/rcs-xn-gui.cpp \
src/settings.cpp \
src/signals.cpp \
src/form-signal-edit.cpp \
src/lib-api.cpp
HEADERS += \
src/rcs-xn.h \
src/errors.h \
src/events.h \
src/settings.h \
src/util.h \
src/signals.h \
src/form-signal-edit.h \
src/lib-api.h \
src/lib-api-common-def.h \
src/q-tree-num-widget-item.h
FORMS += \
form/main-window.ui \
form/signal-edit.ui
SOURCES += \
lib/xn-lib-cpp-qt/xn-pending.cpp \
lib/xn-lib-cpp-qt/xn.cpp \
lib/xn-lib-cpp-qt/xn-api.cpp \
lib/xn-lib-cpp-qt/xn-receive.cpp \
lib/xn-lib-cpp-qt/xn-send.cpp \
lib/xn-lib-cpp-qt/xn-win-com-discover.cpp
HEADERS += \
lib/xn-lib-cpp-qt/q-str-exception.h \
lib/xn-lib-cpp-qt/xn-loco-addr.h \
lib/xn-lib-cpp-qt/xn-commands.h \
lib/xn-lib-cpp-qt/xn.h \
lib/q-str-exception.h \
lib/xn-lib-cpp-qt/xn-win-com-discover.h
CONFIG += c++14 dll
QMAKE_CXXFLAGS += -Wall -Wextra -pedantic
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 += core gui serialport
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
VERSION_MAJOR = 1
VERSION_MINOR = 5
DEFINES += "VERSION_MAJOR=$$VERSION_MAJOR" \
"VERSION_MINOR=$$VERSION_MINOR" \
# Uncomment for official release without '-dev' in caption
# DEFINES += "RCS_XN_RELEASE"
#Target version
VERSION = "$${VERSION_MAJOR}.$${VERSION_MINOR}"
DEFINES += "VERSION=\\\"$${VERSION}\\\""