185 lines
6.6 KiB
Prolog
185 lines
6.6 KiB
Prolog
# HolePitPositionApp.pro
|
|
|
|
QT += core gui network serialport
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
CONFIG += c++11
|
|
|
|
# 椤圭洰鍚嶇О
|
|
TARGET = HolePitPositionApp
|
|
|
|
# 妯℃澘绫诲瀷
|
|
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/../HolePitPositionConfig/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
|
|
INCLUDEPATH += $$PWD/../../../Module/AuthModule/Inc
|
|
|
|
# 鍧愭爣鍙樻崲搴?
|
|
INCLUDEPATH += $$PWD/../../../Utils/DataUtils/CoordinateTransform/Inc
|
|
# eigen 渚濊禆
|
|
INCLUDEPATH += $$PWD/../../../SDK/eigen-3.3.9
|
|
|
|
#opencv
|
|
INCLUDEPATH += $$PWD/../../../SDK/OpenCV320/include
|
|
|
|
# 婧愭枃浠?
|
|
SOURCES += \
|
|
Presenter/Src/ConfigManager.cpp \
|
|
Presenter/Src/HolePitPositionPresenter.cpp \
|
|
Presenter/Src/DetectPresenter.cpp \
|
|
Presenter/Src/TCPServerProtocol.cpp \
|
|
Presenter/Src/TCPServerMethods.cpp \
|
|
main.cpp \
|
|
mainwindow.cpp \
|
|
dialogalgoarg.cpp
|
|
|
|
# 澶存枃浠?
|
|
HEADERS += \
|
|
Presenter/Inc/ConfigManager.h \
|
|
Presenter/Inc/HolePitPositionPresenter.h \
|
|
Presenter/Inc/DetectPresenter.h \
|
|
Presenter/Inc/TCPServerProtocol.h \
|
|
Presenter/Inc/ProtocolCommon.h \
|
|
IYHolePitPositionStatus.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../../../Module/AuthModule/debug -lAuthModule
|
|
LIBS += -L../HolePitPositionConfig/debug -lHolePitPositionConfig
|
|
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
|
|
LIBS += -L../../../Utils/DataUtils/CoordinateTransform/debug -lCoordinateTransformd
|
|
|
|
}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../../../Module/AuthModule/release -lAuthModule
|
|
LIBS += -L../HolePitPositionConfig/release -lHolePitPositionConfig
|
|
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
|
|
LIBS += -L../../../Utils/DataUtils/CoordinateTransform/release -lCoordinateTransform
|
|
}else:unix:!macx {
|
|
# Unix/Linux骞冲彴搴撻摼鎺ワ紙鍖呮嫭浜ゅ弶缂栬瘧锛? # 娉ㄦ剰閾炬帴椤哄簭锛氫緷璧栧叧绯讳粠楂樺埌浣庯紙琚緷璧栫殑搴撴斁鍦ㄥ悗闈級
|
|
LIBS += -L../HolePitPositionConfig -lHolePitPositionConfig
|
|
LIBS += -L../../../AppUtils/UICommon -lUICommon
|
|
LIBS += -L../../../AppUtils/AppCommon -lAppCommon
|
|
LIBS += -L../../../AppUtils/AppConfig -lAppConfig
|
|
LIBS += -L../../../Module/AuthModule -lAuthModule
|
|
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 += -L../../../Utils/DataUtils/CoordinateTransform -lCoordinateTransform
|
|
|
|
# 娣诲姞绯荤粺搴撲緷璧?
|
|
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
|
|
}
|
|
|
|
|
|
# 绠楁硶 - 浣跨敤 workpieceHolePositioning 绠楁硶
|
|
INCLUDEPATH += ../../../AppAlgo/workpieceHolePositioning/Inc
|
|
|
|
win32:CONFIG(release, debug|release): {
|
|
LIBS += -L$$PWD/../../../AppAlgo/workpieceHolePositioning/Windows/x64/Release -lworkpieceHolePositioning -lbaseAlgorithm
|
|
LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
|
|
}
|
|
else:win32:CONFIG(debug, debug|release): {
|
|
LIBS += -L$$PWD/../../../AppAlgo/workpieceHolePositioning/Windows/x64/Debug -lworkpieceHolePositioning -lbaseAlgorithm
|
|
LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
|
|
}
|
|
else:unix:!macx: {
|
|
LIBS += -L$$PWD/../../../AppAlgo/workpieceHolePositioning/Arm/aarch64 -lworkpieceHolePositioning -lbaseAlgorithm
|
|
LIBS += -L$$PWD/../../../SDK/OpenCV320/Arm/aarch64 -lopencv_core -lopencv_imgproc -lopencv_highgui
|
|
}
|
|
|
|
# 娣诲姞Windows绯荤粺搴撲緷璧?
|
|
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
|