2025-09-10 00:31:27 +08:00
|
|
|
|
QT += core
|
2025-08-27 23:10:36 +08:00
|
|
|
|
QT += network
|
|
|
|
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
|
|
|
|
CONFIG += c++11 console
|
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-27 23:10:36 +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
|
|
|
|
INCLUDEPATH += $$PWD/../../../VrCommon/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../VrUtils/Inc
|
2025-08-27 23:10:36 +08:00
|
|
|
|
INCLUDEPATH += $$PWD/Presenter/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/Utils/Inc
|
|
|
|
|
|
|
2025-09-14 14:51:38 +08:00
|
|
|
|
INCLUDEPATH += $$PWD/../../../VrConfig/Inc
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../VrEyeDevice/Inc
|
2025-09-10 00:31:27 +08:00
|
|
|
|
INCLUDEPATH += $$PWD/../BeltTearingConfig/Inc
|
2025-08-27 23:10:36 +08:00
|
|
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
|
|
BeltTearingAlgo.cpp \
|
|
|
|
|
|
beltTearingDetection.cpp \
|
|
|
|
|
|
main.cpp \
|
2025-09-10 00:31:27 +08:00
|
|
|
|
BeltTearingPresenter.cpp \
|
|
|
|
|
|
PathManager.cpp
|
2025-08-27 23:10:36 +08:00
|
|
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
|
|
SG_baseAlgo_Export.h \
|
|
|
|
|
|
SG_baseDataType.h \
|
|
|
|
|
|
SG_errCode.h \
|
|
|
|
|
|
beltTearingDetection_Export.h \
|
|
|
|
|
|
BeltTearingAlgo.h \
|
2025-09-10 00:31:27 +08:00
|
|
|
|
BeltTearingPresenter.h \
|
|
|
|
|
|
PathManager.h \
|
|
|
|
|
|
Version.h
|
2025-08-27 23:10:36 +08:00
|
|
|
|
|
|
|
|
|
|
FORMS +=
|
|
|
|
|
|
|
|
|
|
|
|
win32:CONFIG(debug, debug|release) {
|
2025-09-10 00:31:27 +08:00
|
|
|
|
LIBS += -L../BeltTearingConfig/debug -lBeltTearingConfig
|
2025-09-14 14:51:38 +08:00
|
|
|
|
LIBS += -L../../../VrEyeDevice/debug -lVrEyeDevice
|
|
|
|
|
|
LIBS += -L../../../VrUtils/debug -lVrUtils
|
2025-08-27 23:10:36 +08:00
|
|
|
|
}else:win32:CONFIG(release, debug|release){
|
2025-09-10 00:31:27 +08:00
|
|
|
|
LIBS += -L../BeltTearingConfig/release -lBeltTearingConfig
|
2025-09-14 14:51:38 +08:00
|
|
|
|
LIBS += -L../../../VrEyeDevice/release -lVrEyeDevice
|
|
|
|
|
|
LIBS += -L../../../VrUtils/release -lVrUtils
|
2025-08-27 23:10:36 +08:00
|
|
|
|
}else:unix:!macx {
|
|
|
|
|
|
# Unix/Linux平台库链接(包括交叉编译)
|
|
|
|
|
|
# 注意链接顺序:依赖关系从高到低
|
2025-09-14 14:51:38 +08:00
|
|
|
|
LIBS += -L../../../VrUtils -lVrUtils
|
|
|
|
|
|
LIBS += -L../../../VrEyeDevice -lVrEyeDevice
|
2025-09-10 00:31:27 +08:00
|
|
|
|
LIBS += -L../BeltTearingConfig -lBeltTearingConfig
|
2025-08-27 23:10:36 +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-08-27 23:10:36 +08:00
|
|
|
|
|
|
|
|
|
|
win32:CONFIG(release, debug|release): {
|
2025-09-14 14:51:38 +08:00
|
|
|
|
LIBS += -L$$PWD/../../../SDK/VzNLSDK/Windows/x64/Release
|
2025-08-27 23:10:36 +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-08-27 23:10:36 +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-08-27 23:10:36 +08:00
|
|
|
|
LIBS += -lVzEyeSecurityLoader-shared -lVzKernel -lVzNLDetect -lVzNLGraphics
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 算法
|
2025-09-14 14:51:38 +08:00
|
|
|
|
INCLUDEPATH += ../../../SDK/OpenCV320/include
|
2025-08-27 23:10:36 +08:00
|
|
|
|
win32:CONFIG(release, debug|release): {
|
2025-09-14 14:51:38 +08:00
|
|
|
|
LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
|
2025-08-27 23:10:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
else:win32:CONFIG(debug, debug|release): {
|
2025-09-14 14:51:38 +08:00
|
|
|
|
LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
|
2025-08-27 23:10:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
else:unix:!macx: {
|
2025-09-14 14:51:38 +08:00
|
|
|
|
LIBS += -L$$PWD/../../../SDK/OpenCV320/Arm/aarch64 -lopencv_core -lopencv_imgproc -lopencv_highgui
|
2025-08-27 23:10:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-10 00:31:27 +08:00
|
|
|
|
|
|
|
|
|
|
# 添加Windows系统库依赖
|
2025-08-27 23:10:36 +08:00
|
|
|
|
win32 {
|
2025-09-10 00:31:27 +08:00
|
|
|
|
LIBS += -lshell32
|
2025-08-27 23:10:36 +08:00
|
|
|
|
LIBS += -lws2_32
|
2025-09-10 00:31:27 +08:00
|
|
|
|
LIBS += -lAdvapi32
|
2025-08-27 23:10:36 +08:00
|
|
|
|
}
|