2026-07-14 17:14:55 +08:00

174 lines
5.8 KiB
Prolog

# WorkpieceApp.pro
QT += core gui network serialport
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
# 椤圭洰鍚嶇О
TARGET = WorkpieceApp
# 澘绫诲瀷
TEMPLATE = app
# 瀹氫箟瀹?DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += UNICODE
DEFINES += _UNICODE
# 缂栫爜璁剧疆
win32-msvc {
QMAKE_CXXFLAGS += /utf-8
}
INCLUDEPATH += $$PWD/Presenter/Inc
INCLUDEPATH += $$PWD/../../../Utils/VrCommon/Inc
INCLUDEPATH += $$PWD/../../../Utils/VrUtils/Inc
INCLUDEPATH += $$PWD/../../../Module/ShareMem/Inc
INCLUDEPATH += $$PWD/../WorkpieceConfig/Inc
INCLUDEPATH += $$PWD/../../../Device/VrEyeDevice/Inc
INCLUDEPATH += $$PWD/../../../Nets/TCPServer/Inc
INCLUDEPATH += $$PWD/../../../Utils/CloudUtils/Inc
INCLUDEPATH += $$PWD/../../../AppUtils/UICommon/Inc
INCLUDEPATH += $$PWD/../../../AppUtils/AppCommon/Inc
INCLUDEPATH += $$PWD/../../../AppUtils/AppConfig/Inc
# 婧愭枃浠?
SOURCES += \
Presenter/Src/ConfigManager.cpp \
Presenter/Src/WorkpiecePresenter.cpp \
Presenter/Src/DetectPresenter.cpp \
Presenter/Src/TCPServerProtocol.cpp \
Presenter/Src/TCPServerMethods.cpp \
main.cpp \
mainwindow.cpp \
dialogalgoarg.cpp \
dialogalgoarg.cpp
# 澶存枃浠?
HEADERS += \
Presenter/Inc/ConfigManager.h \
Presenter/Inc/WorkpiecePresenter.h \
Presenter/Inc/DetectPresenter.h \
Presenter/Inc/TCPServerProtocol.h \
Presenter/Inc/ProtocolCommon.h \
IYWorkpieceStatus.h \
mainwindow.h \
dialogalgoarg.h \
Version.h
# UI鏂囦欢
FORMS += \
mainwindow.ui \
dialogalgoarg.ui
# 璧勬簮鏂囦欢
RESOURCES += \
resources.qrc \
../../../AppUtils/UICommon/common_resources.qrc
# Windows浠诲姟鏍忓浘鏍囬厤缃?
win32 {
RC_ICONS = resource/logo.ico
}
win32:CONFIG(debug, debug|release) {
LIBS += -L../../../Utils/VrUtils/debug -lVrUtils
LIBS += -L../../../Utils/CloudUtils/debug -lCloudUtils
LIBS += -L../../../AppUtils/UICommon/debug -lUICommon
LIBS += -L../../../AppUtils/AppCommon/debug -lAppCommon
LIBS += -L../../../AppUtils/AppConfig/debug -lAppConfig
LIBS += -L../WorkpieceConfig/debug -lWorkpieceConfig
LIBS += -L../../../Device/VrEyeDevice/debug -lVrEyeDevice
LIBS += -L../../../Nets/debug -lModbusTCPServer
LIBS += -L../../../Module/ShareMem/debug -lShareMem
LIBS += -L../../../Nets/debug -lVrModbus
LIBS += -L../../../Nets/debug -lVrTcpServer
}else:win32:CONFIG(release, debug|release){
LIBS += -L../../../Utils/VrUtils/release -lVrUtils
LIBS += -L../../../Utils/CloudUtils/release -lCloudUtils
LIBS += -L../../../AppUtils/UICommon/release -lUICommon
LIBS += -L../../../AppUtils/AppCommon/release -lAppCommon
LIBS += -L../../../AppUtils/AppConfig/release -lAppConfig
LIBS += -L../WorkpieceConfig/release -lWorkpieceConfig
LIBS += -L../../../Device/VrEyeDevice/release -lVrEyeDevice
LIBS += -L../../../Nets/release -lModbusTCPServer
LIBS += -L../../../Module/ShareMem/release -lShareMem
LIBS += -L../../../Nets/release -lVrModbus
LIBS += -L../../../Nets/release -lVrTcpServer
}else:unix:!macx {
# Unix/Linux骞冲彴搴撻摼鎺ワ紙鍖呮嫭浜ゅ弶缂栬瘧锛? # 娉ㄦ剰閾炬帴椤哄簭锛氫緷璧栧叧绯讳粠楂樺埌浣庯紙琚緷璧栫殑搴撴斁鍦ㄥ悗闈級
LIBS += -L../WorkpieceConfig -lWorkpieceConfig
LIBS += -L../../../AppUtils/UICommon -lUICommon
LIBS += -L../../../AppUtils/AppCommon -lAppCommon
LIBS += -L../../../AppUtils/AppConfig -lAppConfig
LIBS += -L../../../Utils/CloudUtils -lCloudUtils
LIBS += -L../../../Device/VrEyeDevice -lVrEyeDevice
LIBS += -L../../../Nets -lModbusTCPServer
LIBS += -L../../../Nets -lVrModbus
LIBS += -L../../../Module/ShareMem -lShareMem
LIBS += -L../../../Nets -lVrTcpServer
LIBS += -L../../../Utils/VrUtils -lVrUtils
# 娣诲姞绯荤粺搴撲緷璧?
LIBS += -lpthread
}
#linux涓嬬殑涓簎nix 锛寃indows涓嬬敤鐨剋in32
INCLUDEPATH += ../../../Device/SDK/VzNLSDK/_Inc
INCLUDEPATH += ../../../Device/SDK/VzNLSDK/Inc
win32:CONFIG(release, debug|release): {
LIBS += -L$$PWD/../../../Device/SDK/VzNLSDK/Windows/x64/Release
LIBS += -lVzKernel -lVzNLDetect -lVzNLGraphics
}
else:win32:CONFIG(debug, debug|release): {
LIBS += -L$$PWD/../../../Device/SDK/VzNLSDK/Windows/x64/Debug
LIBS += -lVzKerneld -lVzNLDetectd -lVzNLGraphicsd
}
else:unix:!macx: {
LIBS += -L$$PWD/../../../Device/SDK/VzNLSDK/Arm/aarch64
LIBS += -lVzEyeSecurityLoader-shared -lVzKernel -lVzNLDetect -lVzNLGraphics
}
# 绠楁硶
INCLUDEPATH += ../../../AppAlgo/workpieceCornerExtraction/Inc
win32:CONFIG(release, debug|release): {
LIBS += -L$$PWD/../../../AppAlgo/workpieceCornerExtraction/Windows/x64/Release -lBQ_workpieceCornerExtraction -lbaseAlgorithm
LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
}
else:win32:CONFIG(debug, debug|release): {
LIBS += -L$$PWD/../../../AppAlgo/workpieceCornerExtraction/Windows/x64/Debug -lBQ_workpieceCornerExtraction -lbaseAlgorithm
LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
}
else:unix:!macx: {
LIBS += -L$$PWD/../../../AppAlgo/workpieceCornerExtraction/Arm/aarch64 -lworkpieceCornerExtraction -lbaseAlgorithm
LIBS += -L$$PWD/../../../SDK/OpenCV320/Arm/aarch64 -lopencv_core -lopencv_imgproc -lopencv_highgui
}
# 娣诲姞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
DISTFILES += \
Version.md