QT += core QT += network QT += gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TEMPLATE = app CONFIG += c++11 console # Add /utf-8 flag only for MSVC builds to enforce UTF-8 encoding win32-msvc { QMAKE_CXXFLAGS += /utf-8 # Define DLLBUILD for static libmodbus linking # This makes MODBUS_API expand to __declspec(dllexport) which works for static lib DEFINES += DLLBUILD } # 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 INCLUDEPATH += $$PWD/../../../Utils/VrCommon/Inc INCLUDEPATH += $$PWD/../../../Utils/VrUtils/Inc INCLUDEPATH += $$PWD/../../../Utils/CloudUtils/Inc INCLUDEPATH += $$PWD/Presenter/Inc INCLUDEPATH += $$PWD/Utils/Inc INCLUDEPATH += $$PWD/../../../VrNets/SDK/modbus/Inc INCLUDEPATH += $$PWD/../../../VrNets/TCPServer/Inc INCLUDEPATH += $$PWD/../../../VrNets/ModbusTCPServer/Inc INCLUDEPATH += $$PWD/../../../VrConfig/Inc INCLUDEPATH += $$PWD/../../../Device/VrEyeDevice/Inc INCLUDEPATH += $$PWD/../BeltTearingConfig/Inc INCLUDEPATH += $$PWD/../../../Module/AuthModule/Inc # SDK绠楁硶搴撹矾寰? INCLUDEPATH += $$PWD/../../../AppAlgo/beltTearing/Inc SOURCES += \ main.cpp \ BeltTearingPresenter.cpp \ PointCloudImageUtils.cpp \ PathManager.cpp \ RobotProtocol.cpp \ RobotProtocolSimplified.cpp \ ModbusRTUMaster.cpp \ TearingTcpProtocol.cpp HEADERS += \ BeltTearingPresenter.h \ PointCloudImageUtils.h \ Version.h \ RobotProtocol.h \ RobotProtocolSimplified.h \ ModbusRTUMaster.h \ TearingTcpProtocol.h FORMS += win32:CONFIG(debug, debug|release) { LIBS += -L../BeltTearingConfig/debug -lBeltTearingConfig LIBS += -L../../../Device/VrEyeDevice/debug -lVrEyeDevice LIBS += -L../../../Utils/CloudUtils/debug -lCloudUtils LIBS += -L../../../VrNets/debug -lVrTcpServer LIBS += -L../../../VrNets/debug -lModbusTCPServer LIBS += -L../../../VrNets/debug -lVrModbus LIBS += -L../../../Utils/VrUtils/debug -lVrUtils LIBS += -L../../../Module/AuthModule/debug -lAuthModule }else:win32:CONFIG(release, debug|release){ LIBS += -L../BeltTearingConfig/release -lBeltTearingConfig LIBS += -L../../../Device/VrEyeDevice/release -lVrEyeDevice LIBS += -L../../../Utils/CloudUtils/release -lCloudUtils LIBS += -L../../../VrNets/release -lVrTcpServer LIBS += -L../../../VrNets/release -lModbusTCPServer LIBS += -L../../../VrNets/release -lVrModbus LIBS += -L../../../Utils/VrUtils/release -lVrUtils LIBS += -L../../../Module/AuthModule/release -lAuthModule }else:unix:!macx { # Unix/Linux骞冲彴搴撻摼鎺ワ紙鍖呮嫭浜ゅ弶缂栬瘧锛? # 娉ㄦ剰閾炬帴椤哄簭锛氫緷璧栧叧绯讳粠楂樺埌浣? LIBS += -L../BeltTearingConfig -lBeltTearingConfig LIBS += -L../../../VrNets -lModbusTCPServer LIBS += -L../../../VrNets -lVrModbus LIBS += -L../../../VrNets -lVrTcpServer LIBS += -L../../../Device/VrEyeDevice -lVrEyeDevice LIBS += -L../../../Utils/CloudUtils -lCloudUtils LIBS += -L../../../Utils/VrUtils -lVrUtils LIBS += -L../../../Module/AuthModule -lAuthModule # 娣诲姞绯荤粺搴撲緷璧? 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 += ../../../SDK/OpenCV320/include win32:CONFIG(release, debug|release): { LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320 # SDK绠楁硶搴? LIBS += -L$$PWD/../../../AppAlgo/beltTearing/Windows/x64/Release -lbeltTearingDetection } else:win32:CONFIG(debug, debug|release): { LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320 # SDK绠楁硶搴? LIBS += -L$$PWD/../../../AppAlgo/beltTearing/Windows/x64/Release -lbeltTearingDetection } else:unix:!macx: { LIBS += -L$$PWD/../../../SDK/OpenCV320/Arm/aarch64 -lopencv_core -lopencv_imgproc -lopencv_highgui # SDK绠楁硶搴? LIBS += -L$$PWD/../../../AppAlgo/beltTearing/Arm/aarch64 -lbeltTearingDetection } # 娣诲姞Windows绯荤粺搴撲緷璧? win32 { LIBS += -lshell32 LIBS += -lws2_32 LIBS += -lAdvapi32 # For serial communication on Windows LIBS += -lsetupapi }