GrabBag/App/LapWeld/LapWeldApp/LapWeldApp.pro

161 lines
5.1 KiB
Prolog
Raw Normal View History

2025-07-23 01:35:14 +08:00
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TEMPLATE = app
2025-09-10 00:31:27 +08:00
# Add /utf-8 flag only for MSVC builds to enforce UTF-8 encoding
win32-msvc {
2025-09-18 23:49:32 +08:00
CONFIG += c++11
2025-09-10 00:31:27 +08:00
QMAKE_CXXFLAGS += /utf-8
2025-09-18 23:49:32 +08:00
}else{
CONFIG += c++17
2025-09-10 00:31:27 +08:00
}
2025-07-23 01:35:14 +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
2025-09-14 14:51:38 +08:00
2025-07-23 01:35:14 +08:00
# 设置应用程序图标
RC_ICONS = resource/logo.ico
INCLUDEPATH += $$PWD/Presenter/Inc
INCLUDEPATH += $$PWD/Utils/Inc
2025-09-14 14:51:38 +08:00
INCLUDEPATH += $$PWD/../../../VrCommon/Inc
INCLUDEPATH += $$PWD/../../../VrUtils/Inc
INCLUDEPATH += $$PWD/../../../VrNets/TCPServer/Inc
2025-09-14 14:51:38 +08:00
INCLUDEPATH += $$PWD/../../../Module/ShareMem/Inc
2025-07-23 01:35:14 +08:00
2025-09-14 14:51:38 +08:00
INCLUDEPATH += $$PWD/../LapWeldConfig/Inc
INCLUDEPATH += $$PWD/../../../VrEyeDevice/Inc
2025-07-23 01:35:14 +08:00
INCLUDEPATH += $$PWD/../../../AppUtils/CloudUtils/Inc
2025-07-23 01:35:14 +08:00
SOURCES += \
Presenter/Src/DetectPresenter.cpp \
2025-09-14 14:51:38 +08:00
Presenter/Src/LapWeldPresenter.cpp \
Presenter/Src/TCPServerProtocol.cpp \
2025-07-23 01:35:14 +08:00
Presenter/Src/ConfigManager.cpp \
Utils/Src/PathManager.cpp \
devstatus.cpp \
2025-09-18 23:49:32 +08:00
dialogalgoarg.cpp \
2025-07-23 01:35:14 +08:00
dialogcamera.cpp \
dialogcameralevel.cpp \
main.cpp \
mainwindow.cpp \
resultitem.cpp
HEADERS += \
Presenter/Inc/DetectPresenter.h \
2025-09-14 14:51:38 +08:00
Presenter/Inc/LapWeldPresenter.h \
2025-07-23 01:35:14 +08:00
Presenter/Inc/ProtocolCommon.h \
Presenter/Inc/TCPServerProtocol.h \
2025-07-23 01:35:14 +08:00
Presenter/Inc/ConfigManager.h \
Utils/Inc/PathManager.h \
2025-09-14 14:51:38 +08:00
IYLapWeldStatus.h \
2025-07-23 01:35:14 +08:00
Version.h \
devstatus.h \
2025-09-18 23:49:32 +08:00
dialogalgoarg.h \
2025-07-23 01:35:14 +08:00
dialogcamera.h \
dialogcameralevel.h \
mainwindow.h \
resultitem.h
FORMS += \
devstatus.ui \
2025-09-18 23:49:32 +08:00
dialogalgoarg.ui \
2025-07-23 01:35:14 +08:00
dialogcamera.ui \
dialogcameralevel.ui \
mainwindow.ui \
resultitem.ui
RESOURCES += \
resources.qrc
win32:CONFIG(debug, debug|release) {
2025-09-18 23:49:32 +08:00
LIBS += -L../../../VrUtils/debug -lVrUtils
LIBS += -L../../../AppUtils/CloudUtils/debug -lCloudUtils
2025-09-18 23:49:32 +08:00
LIBS += -L../LapWeldConfig/debug -lLapWeldConfig
LIBS += -L../../../VrEyeDevice/debug -lVrEyeDevice
LIBS += -L../../../VrNets/debug -lVrTcpServer
2025-09-18 23:49:32 +08:00
LIBS += -L../../../Module/ShareMem/debug -lShareMem
2025-07-23 01:35:14 +08:00
}else:win32:CONFIG(release, debug|release){
2025-09-18 23:49:32 +08:00
LIBS += -L../../../VrUtils/release -lVrUtils
LIBS += -L../../../AppUtils/CloudUtils/release -lCloudUtils
2025-09-18 23:49:32 +08:00
LIBS += -L../LapWeldConfig/release -lLapWeldConfig
LIBS += -L../../../VrEyeDevice/release -lVrEyeDevice
LIBS += -L../../../VrNets/release -lVrTcpServer
2025-09-18 23:49:32 +08:00
LIBS += -L../../../Module/ShareMem/release -lShareMem
2025-07-23 01:35:14 +08:00
}else:unix:!macx {
# Unix/Linux平台库链接(包括交叉编译)
# 注意链接顺序:依赖关系从高到低
2025-09-14 14:51:38 +08:00
LIBS += -L../LapWeldConfig -lLapWeldConfig
LIBS += -L../../../VrEyeDevice -lVrEyeDevice
LIBS += -L../../../VrNets -lVrTcpServer
2025-09-14 14:51:38 +08:00
LIBS += -L../../../Module/ShareMem -lShareMem
LIBS += -L../../../AppUtils/CloudUtils -lCloudUtils
2025-09-14 14:51:38 +08:00
LIBS += -L../../../VrUtils -lVrUtils
2025-07-23 01:35:14 +08:00
# 添加系统库依赖
LIBS += -lpthread
}
#linux下的为unix windows下用的win32
2025-09-14 14:51:38 +08:00
INCLUDEPATH += ../../../SDK/VzNLSDK/_Inc
INCLUDEPATH += ../../../SDK/VzNLSDK/Inc
2025-07-23 01:35:14 +08:00
win32:CONFIG(release, debug|release): {
2025-09-14 14:51:38 +08:00
LIBS += -L$$PWD/../../../SDK/VzNLSDK/Windows/x64/Release
2025-07-23 01:35:14 +08:00
LIBS += -lVzKernel -lVzNLDetect -lVzNLGraphics
}
else:win32:CONFIG(debug, debug|release): {
2025-09-14 14:51:38 +08:00
LIBS += -L$$PWD/../../../SDK/VzNLSDK/Windows/x64/Debug
2025-07-23 01:35:14 +08:00
LIBS += -lVzKerneld -lVzNLDetectd -lVzNLGraphicsd
}
else:unix:!macx: {
2025-09-14 14:51:38 +08:00
LIBS += -L$$PWD/../../../SDK/VzNLSDK/Arm/aarch64
2025-07-23 01:35:14 +08:00
LIBS += -lVzEyeSecurityLoader-shared -lVzKernel -lVzNLDetect -lVzNLGraphics
}
# 算法
2025-09-14 14:51:38 +08:00
INCLUDEPATH += ../../../SDK/lapWeldDetection/Inc
INCLUDEPATH += ../../../SDK/OpenCV320/include
2025-07-23 01:35:14 +08:00
win32:CONFIG(release, debug|release): {
2025-09-14 14:51:38 +08:00
LIBS += -L$$PWD/../../../SDK/lapWeldDetection/Windows/x64/Release -llapWeldDetection
LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
2025-07-23 01:35:14 +08:00
}
else:win32:CONFIG(debug, debug|release): {
2025-09-14 14:51:38 +08:00
LIBS += -L$$PWD/../../../SDK/lapWeldDetection/Windows/x64/Debug -llapWeldDetection
LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
2025-07-23 01:35:14 +08:00
}
else:unix:!macx: {
2025-09-18 23:49:32 +08:00
LIBS += -L$$PWD/../../../SDK/lapWeldDetection/Arm/aarch64 -llapWeldDetection -lbaseAlgorithm
LIBS += -L$$PWD/../../../SDK/OpenCV320/Arm/aarch64 -lopencv_core -lopencv_imgproc -lopencv_highgui
2025-07-23 01:35:14 +08:00
}
# 添加libmodbus依赖
win32 {
LIBS += -lws2_32
LIBS += Advapi32.lib
}
# Default rules for deployment.
unix {
target.path = /usr/lib
# Link real-time library for POSIX shared memory functions
LIBS += -lrt
}
!isEmpty(target.path): INSTALLS += target
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target