114 lines
2.7 KiB
Prolog
114 lines
2.7 KiB
Prolog
#-------------------------------------------------
|
|
#
|
|
# Project created by QtCreator 2010-11-24T09:57:26
|
|
#
|
|
#-------------------------------------------------
|
|
|
|
QT += core gui network
|
|
QT += core5compat
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
TARGET = qModMaster
|
|
TEMPLATE = app
|
|
|
|
SOURCES += src/main.cpp \
|
|
src/mainwindow.cpp \
|
|
3rdparty/libmodbus/modbus.c \
|
|
forms/about.cpp \
|
|
forms/settingsmodbusrtu.cpp \
|
|
forms/settingsmodbustcp.cpp \
|
|
src/modbusadapter.cpp \
|
|
src/eutils.cpp \
|
|
src/registersmodel.cpp \
|
|
src/rawdatamodel.cpp \
|
|
forms/settings.cpp \
|
|
forms/busmonitor.cpp \
|
|
3rdparty/libmodbus/modbus-data.c \
|
|
3rdparty/libmodbus/modbus-tcp.c \
|
|
3rdparty/libmodbus/modbus-rtu.c \
|
|
src/rawdatadelegate.cpp \
|
|
src/registersdatadelegate.cpp \
|
|
src/modbuscommsettings.cpp \
|
|
3rdparty/QsLog/QsLogDest.cpp \
|
|
3rdparty/QsLog/QsLog.cpp \
|
|
3rdparty/QsLog/QsLogDestConsole.cpp \
|
|
3rdparty/QsLog/QsLogDestFile.cpp \
|
|
src/infobar.cpp \
|
|
forms/tools.cpp
|
|
|
|
HEADERS += src/mainwindow.h \
|
|
3rdparty/libmodbus/modbus.h \
|
|
forms/about.h \
|
|
forms/settingsmodbusrtu.h \
|
|
forms/settingsmodbustcp.h \
|
|
src/modbusadapter.h \
|
|
src/eutils.h \
|
|
src/registersmodel.h \
|
|
src/rawdatamodel.h \
|
|
forms/settings.h \
|
|
forms/busmonitor.h \
|
|
src/rawdatadelegate.h \
|
|
src/registersdatadelegate.h \
|
|
src/modbuscommsettings.h \
|
|
3rdparty/QsLog/QsLog.h \
|
|
3rdparty/QsLog/QsLogDest.h \
|
|
3rdparty/QsLog/QsLogDestConsole.h \
|
|
3rdparty/QsLog/QsLogLevel.h \
|
|
3rdparty/QsLog/QsLogDisableForThisFile.h \
|
|
3rdparty/QsLog/QsLogDestFile.h \
|
|
src/infobar.h \
|
|
forms/tools.h
|
|
|
|
INCLUDEPATH += 3rdparty/libmodbus \
|
|
3rdparty/QsLog
|
|
|
|
TRANSLATIONS += translations/$$TARGET"_zh_CN.ts"
|
|
TRANSLATIONS += translations/$$TARGET"_zh_TW.ts"
|
|
|
|
unix:SOURCES +=
|
|
|
|
unix:DEFINES += _TTY_POSIX_
|
|
|
|
win32:SOURCES +=
|
|
|
|
win32:DEFINES += _TTY_WIN_ WINVER=0x0501
|
|
|
|
win32:LIBS += -lsetupapi -lwsock32 -lws2_32
|
|
|
|
QMAKE_CXXFLAGS += -std=gnu++17
|
|
|
|
DEFINES += QS_LOG_LINE_NUMBERS # automatically writes the file and line for each log message
|
|
#DEFINES += QS_LOG_DISABLE # logging code is replaced with a no-op
|
|
#DEFINES += QS_LOG_SEPARATE_THREAD # messages are queued and written from a separate thread
|
|
#DEFINES += LIB_MODBUS_DEBUG_OUTPUT # enable debug output from libmodbus
|
|
|
|
FORMS += forms/mainwindow.ui \
|
|
forms/about.ui \
|
|
forms/settingsmodbusrtu.ui \
|
|
forms/settingsmodbustcp.ui \
|
|
forms/settings.ui \
|
|
forms/busmonitor.ui \
|
|
forms/tools.ui
|
|
|
|
RESOURCES += \
|
|
icons/icons.qrc \
|
|
translations/translations.qrc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|