forked from CieNTi/serial_port_plotter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSerialPortPlotter.pro
65 lines (48 loc) · 1.76 KB
/
SerialPortPlotter.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
#-------------------------------------------------
#
# Project created by QtCreator 2014-12-22T14:53:33
#
#-------------------------------------------------
QT += core gui
QT += serialport
CONFIG += c++11
#greaterThan(QT_MAJOR_VERSION, 5): QT += widgets printsupport
QT += widgets printsupport
TARGET = serialportplotter
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
qcustomplot/qcustomplot.cpp \
helpwindow.cpp
HEADERS += mainwindow.hpp \
qcustomplot/qcustomplot.h \
helpwindow.hpp
FORMS += mainwindow.ui \
helpwindow.ui
RESOURCES += \
res/serial_port_plotter.qrc \
#res/qdark_stylesheet/qdarkstyle/style.qrc # don't exist
# The following line compiles on Release but not on Debug, so this workaroung is used:
RC_FILE = res/serial_port_plotter.rc
# Call the resource compiler
#win32:mkver_rc.target = serial_port_plotter_res.o
#win32:mkver_rc.commands = windres --use-temp-file -i serial_port_plotter.rc -o serial_port_plotter_res.o --include-dir=../res -DVERSION_H_INTERN $(DEFINES)
#win32:QMAKE_EXTRA_TARGETS += mkver_rc
#win32:PRE_TARGETDEPS += serial_port_plotter_res.o
#win32:LIBS += serial_port_plotter_res.o
unix:configfiles.extra = chmod +x scripts/*; make clean;
binfile.files += serial_port_plotter
binfile.path = /usr/bin/
#configfiles.files += data/config/*
configfiles.path = /usr/share/
docfiles.files += data/doc/*
docfiles.path = /usr/share/doc/
manfiles.files += data/man/*
manfiles.path = /usr/share/man/man1/
shortcutfiles.files += data/serialportplotter.desktop
shortcutfiles.path = /usr/share/applications/
INSTALLS += configfiles
INSTALLS += docfiles
INSTALLS += manfiles
INSTALLS += shortcutfiles
INSTALLS += binfile