BatteryMonitor/BatteryMonitor.pro

80 lines
1.9 KiB
Prolog

QT += core gui charts
QT += serialport
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
appproto.cpp \
appproto_english.cpp \
batt.cpp \
chartpaint.cpp \
custom/delegate.cpp \
dialoglogin.cpp \
library/libmodbus/src/modbus-data.c \
library/libmodbus/src/modbus-rtu.c \
library/libmodbus/src/modbus-tcp.c \
library/libmodbus/src/modbus.c \
main.cpp \
mainwindow.cpp \
modbusrtu.cpp \
proto/battery.pb.cc \
appserial.cpp \
proto/battery_english.pb.cc \
upgradeicon.cpp
HEADERS += \
appproto.h \
appproto_english.h \
batt.h \
chartpaint.h \
custom/delegate.h \
dialoglogin.h \
library/libmodbus/include/config.h \
library/libmodbus/include/modbus-private.h \
library/libmodbus/include/modbus-rtu-private.h \
library/libmodbus/include/modbus-rtu.h \
library/libmodbus/include/modbus-tcp-private.h \
library/libmodbus/include/modbus-tcp.h \
library/libmodbus/include/modbus-version.h \
library/libmodbus/include/modbus.h \
mainwindow.h \
modbusrtu.h \
proto/battery.pb.h \
appserial.h \
proto/battery_english.pb.h \
upgradeicon.h
FORMS += \
dialoglogin.ui \
mainwindow.ui
TRANSLATIONS += \
BatteryMonitor_CHN.ts \
BatteryMonitor_ENG.ts
INCLUDEPATH += \
library\libprotobuf\include \
library\libmodbus\include \
custom
LIBS += \
-L$$PWD\library\libprotobuf\lib -lprotobuf \
-lws2_32
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
DISTFILES +=
RESOURCES += \
image.qrc \
language.qrc