93 lines
2.8 KiB
Prolog
93 lines
2.8 KiB
Prolog
QT += core gui network
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
TEMPLATE = app
|
|
|
|
CONFIG += c++17
|
|
# Add /utf-8 flag only for MSVC builds to enforce UTF-8 encoding
|
|
win32-msvc {
|
|
QMAKE_CXXFLAGS += /utf-8
|
|
}
|
|
|
|
# Include paths
|
|
INCLUDEPATH += $$PWD/Presenter/Inc
|
|
INCLUDEPATH += ../BeltTearingConfig/Inc
|
|
|
|
|
|
INCLUDEPATH += ../../../VrNets/tcpClient/Inc
|
|
INCLUDEPATH += ../../../VrUtils/Inc
|
|
|
|
# Link libraries
|
|
win32:CONFIG(debug, debug|release) {
|
|
LIBS += -L../BeltTearingConfig/debug -lBeltTearingConfig
|
|
LIBS += -L../../../VrNets/debug -lVrTcpClient
|
|
LIBS += -L../../../VrUtils/debug -lVrUtils
|
|
} else:win32:CONFIG(release, debug|release) {
|
|
LIBS += -L../BeltTearingConfig/release -lBeltTearingConfig
|
|
LIBS += -L../../../VrNets/release -lVrTcpClient
|
|
LIBS += -L../../../VrUtils/release -lVrUtils
|
|
}else:unix:!macx {
|
|
LIBS += -L../BeltTearingConfig -lBeltTearingConfig
|
|
LIBS += -L../../../VrNets -lVrTcpClient
|
|
LIBS += -L../../../VrUtils -lVrUtils
|
|
}
|
|
|
|
# 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 += \
|
|
dialognetconfig.cpp \
|
|
main.cpp \
|
|
mainwindow.cpp \
|
|
models/ImageInfoModel.cpp \
|
|
widgets/DeviceStatusWidget.cpp \
|
|
widgets/ImageGridWidget.cpp \
|
|
widgets/ImageGridWithTableWidget.cpp \
|
|
widgets/ImageTileWidget.cpp \
|
|
widgets/TearingDataTableWidget.cpp \
|
|
widgets/StyledMessageBox.cpp \
|
|
Presenter/Src/PathManager.cpp \
|
|
Presenter/Src/BeltTearingPresenter.cpp
|
|
|
|
HEADERS += \
|
|
IStatusUpdate.h \
|
|
dialognetconfig.h \
|
|
mainwindow.h \
|
|
models/ImageInfoModel.h \
|
|
widgets/ClickableFrame.h \
|
|
widgets/DeviceStatusWidget.h \
|
|
widgets/ImageGridWidget.h \
|
|
widgets/ImageGridWithTableWidget.h \
|
|
widgets/ImageTileWidget.h \
|
|
widgets/TearingDataTableWidget.h \
|
|
widgets/StyledMessageBox.h \
|
|
Presenter/Inc/PathManager.h \
|
|
Presenter/Inc/BeltTearingPresenter.h
|
|
|
|
FORMS += \
|
|
dialognetconfig.ui \
|
|
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
|
|
|
|
# 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"
|
|
# }
|
|
|
|
RESOURCES += \
|
|
resources.qrc
|