-
Notifications
You must be signed in to change notification settings - Fork 0
/
xn.pro
61 lines (52 loc) · 1.1 KB
/
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
TARGET = xn
TEMPLATE = lib
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += XN_SHARED_LIBRARY
SOURCES += \
xn.cpp \
xn-api.cpp \
xn-receive.cpp \
xn-send.cpp \
xn-pending.cpp \
xn-win-com-discover.cpp
HEADERS += \
xn.h \
xn-loco-addr.h \
xn-commands.h \
q-str-exception.h \
xn-win-com-discover.h
# Do not import when using as static library
SOURCES += \
lib-api.cpp \
lib-main.cpp \
settings.cpp \
config-window.cpp
HEADERS += \
lib-api.h \
lib-main.h \
lib-events.h \
lib-api-common-def.h \
settings.h \
lib-errors.h
FORMS += config-window.ui
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 = 2
VERSION_MINOR = 7
DEFINES += "VERSION_MAJOR=$$VERSION_MAJOR" \
"VERSION_MINOR=$$VERSION_MINOR"
#Target version
VERSION = $${VERSION_MAJOR}.$${VERSION_MINOR}
DEFINES += "VERSION=\\\"$${VERSION}\\\""