2025-08-24 23:24:33 +08:00
|
|
|
QT += core gui network
|
|
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
|
|
CONFIG += c++17
|
2025-09-10 00:31:27 +08:00
|
|
|
# Add /utf-8 flag only for MSVC builds to enforce UTF-8 encoding
|
|
|
|
|
win32-msvc {
|
|
|
|
|
QMAKE_CXXFLAGS += /utf-8
|
|
|
|
|
}
|
2025-08-24 23:24:33 +08:00
|
|
|
|
2025-10-12 16:46:46 +08:00
|
|
|
# For Windows crash dump generation and MessageBox functions (only for MSVC)
|
|
|
|
|
win32-msvc {
|
|
|
|
|
LIBS += -lDbgHelp -luser32
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-24 23:24:33 +08:00
|
|
|
# Include paths
|
|
|
|
|
INCLUDEPATH += $$PWD/Presenter/Inc
|
|
|
|
|
INCLUDEPATH += ../BeltTearingConfig/Inc
|
2025-09-14 14:51:38 +08:00
|
|
|
|
2025-09-18 23:49:32 +08:00
|
|
|
INCLUDEPATH += ../../../VrNets/TCPClient/Inc
|
2025-09-14 14:51:38 +08:00
|
|
|
INCLUDEPATH += ../../../VrUtils/Inc
|
2025-09-29 00:56:53 +08:00
|
|
|
INCLUDEPATH += ../../../QtUtils/Inc
|
2025-08-24 23:24:33 +08:00
|
|
|
|
2025-09-21 22:20:24 +08:00
|
|
|
INCLUDEPATH += ../../../SDK/VzNLSDK/Inc
|
|
|
|
|
INCLUDEPATH += ../../../SDK/beltTearing/Inc
|
|
|
|
|
|
2025-08-24 23:24:33 +08:00
|
|
|
# Link libraries
|
|
|
|
|
win32:CONFIG(debug, debug|release) {
|
|
|
|
|
LIBS += -L../BeltTearingConfig/debug -lBeltTearingConfig
|
2025-09-14 14:51:38 +08:00
|
|
|
LIBS += -L../../../VrNets/debug -lVrTcpClient
|
|
|
|
|
LIBS += -L../../../VrUtils/debug -lVrUtils
|
2025-09-29 00:56:53 +08:00
|
|
|
LIBS += -L../../../QtUtils/debug -lQtUtils
|
2025-08-24 23:24:33 +08:00
|
|
|
} else:win32:CONFIG(release, debug|release) {
|
|
|
|
|
LIBS += -L../BeltTearingConfig/release -lBeltTearingConfig
|
2025-09-14 14:51:38 +08:00
|
|
|
LIBS += -L../../../VrNets/release -lVrTcpClient
|
|
|
|
|
LIBS += -L../../../VrUtils/release -lVrUtils
|
2025-09-29 00:56:53 +08:00
|
|
|
LIBS += -L../../../QtUtils/release -lQtUtils
|
2025-08-24 23:24:33 +08:00
|
|
|
}else:unix:!macx {
|
2025-09-14 14:51:38 +08:00
|
|
|
LIBS += -L../BeltTearingConfig -lBeltTearingConfig
|
|
|
|
|
LIBS += -L../../../VrNets -lVrTcpClient
|
|
|
|
|
LIBS += -L../../../VrUtils -lVrUtils
|
2025-09-29 00:56:53 +08:00
|
|
|
LIBS += -L../../../QtUtils -lQtUtils
|
2025-08-24 23:24:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
# 设置应用程序图标
|
|
|
|
|
RC_ICONS = resource/logo.ico
|
|
|
|
|
|
|
|
|
|
SOURCES += \
|
2025-09-29 00:56:53 +08:00
|
|
|
dialogalgoarg.cpp \
|
2025-09-06 15:07:16 +08:00
|
|
|
dialognetconfig.cpp \
|
2025-08-24 23:24:33 +08:00
|
|
|
main.cpp \
|
|
|
|
|
mainwindow.cpp \
|
|
|
|
|
models/ImageInfoModel.cpp \
|
|
|
|
|
widgets/DeviceStatusWidget.cpp \
|
|
|
|
|
widgets/ImageGridWidget.cpp \
|
|
|
|
|
widgets/ImageGridWithTableWidget.cpp \
|
|
|
|
|
widgets/ImageTileWidget.cpp \
|
2025-09-10 00:31:27 +08:00
|
|
|
widgets/TearingDataTableWidget.cpp \
|
|
|
|
|
Presenter/Src/PathManager.cpp \
|
|
|
|
|
Presenter/Src/BeltTearingPresenter.cpp
|
2025-08-24 23:24:33 +08:00
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
|
IStatusUpdate.h \
|
2025-09-21 22:20:24 +08:00
|
|
|
Version.h \
|
2025-09-29 00:56:53 +08:00
|
|
|
dialogalgoarg.h \
|
2025-09-06 15:07:16 +08:00
|
|
|
dialognetconfig.h \
|
2025-08-24 23:24:33 +08:00
|
|
|
mainwindow.h \
|
|
|
|
|
models/ImageInfoModel.h \
|
|
|
|
|
widgets/ClickableFrame.h \
|
|
|
|
|
widgets/DeviceStatusWidget.h \
|
|
|
|
|
widgets/ImageGridWidget.h \
|
|
|
|
|
widgets/ImageGridWithTableWidget.h \
|
|
|
|
|
widgets/ImageTileWidget.h \
|
2025-09-10 00:31:27 +08:00
|
|
|
widgets/TearingDataTableWidget.h \
|
|
|
|
|
Presenter/Inc/PathManager.h \
|
|
|
|
|
Presenter/Inc/BeltTearingPresenter.h
|
2025-08-24 23:24:33 +08:00
|
|
|
|
|
|
|
|
FORMS += \
|
2025-09-29 00:56:53 +08:00
|
|
|
dialogalgoarg.ui \
|
2025-09-06 15:07:16 +08:00
|
|
|
dialognetconfig.ui \
|
2025-08-24 23:24:33 +08:00
|
|
|
mainwindow.ui
|
|
|
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
|
resources.qrc
|
|
|
|
|
|
|
|
|
|
# Default rules for deployment.
|
|
|
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
|
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
|
|
2025-08-31 21:08:28 +08:00
|
|
|
# Add application manifest for running as administrator
|
|
|
|
|
# win32 {
|
|
|
|
|
# QMAKE_LFLAGS += /MANIFEST:NO
|
|
|
|
|
# manifest.input = $$PWD/BeltTearingApp.exe.manifest
|
|
|
|
|
# manifest.output = $$OUT_PWD/$$TARGET.exe.embed.manifest
|
|
|
|
|
# QMAKE_POST_LINK += mt.exe -manifest $$manifest.input -outputresource:"$$OUT_PWD/$$TARGET.exe"
|
|
|
|
|
# }
|
|
|
|
|
|
2025-08-24 23:24:33 +08:00
|
|
|
RESOURCES += \
|
|
|
|
|
resources.qrc
|