173 lines
5.9 KiB
Prolog
173 lines
5.9 KiB
Prolog
# ParticleSizeApp.pro
|
|
|
|
QT += core gui network serialport
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
CONFIG += c++14
|
|
|
|
# 椤圭洰鍚嶇О
|
|
TARGET = ParticleSizeApp
|
|
|
|
# 妯℃澘绫诲瀷
|
|
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/../../../VrNets/TCPServer/Inc
|
|
|
|
INCLUDEPATH += $$PWD/../../../Module/ShareMem/Inc
|
|
|
|
INCLUDEPATH += $$PWD/../ParticleSizeConfig/Inc
|
|
INCLUDEPATH += $$PWD/../../../Device/VrEyeDevice/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/ParticleSizePresenter.cpp \
|
|
Presenter/Src/DetectPresenter.cpp \
|
|
Presenter/Src/TCPServerProtocol.cpp \
|
|
Presenter/Src/TCPServerMethods.cpp \
|
|
main.cpp \
|
|
mainwindow.cpp \
|
|
dialogalgoarg.cpp \
|
|
resultitem.cpp
|
|
|
|
# 澶存枃浠?
|
|
HEADERS += \
|
|
Presenter/Inc/ConfigManager.h \
|
|
Presenter/Inc/ParticleSizePresenter.h \
|
|
Presenter/Inc/DetectPresenter.h \
|
|
Presenter/Inc/TCPServerProtocol.h \
|
|
IYParticleSizeStatus.h \
|
|
mainwindow.h \
|
|
dialogalgoarg.h \
|
|
resultitem.h \
|
|
Version.h
|
|
|
|
# UI鏂囦欢
|
|
FORMS += \
|
|
mainwindow.ui \
|
|
dialogalgoarg.ui \
|
|
resultitem.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../ParticleSizeConfig/debug -lParticleSizeConfig
|
|
LIBS += -L../../../Device/VrEyeDevice/debug -lVrEyeDevice
|
|
LIBS += -L../../../VrNets/debug -lModbusTCPServer
|
|
LIBS += -L../../../Module/ShareMem/debug -lShareMem
|
|
LIBS += -L../../../VrNets/debug -lVrModbus
|
|
LIBS += -L../../../VrNets/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../ParticleSizeConfig/release -lParticleSizeConfig
|
|
LIBS += -L../../../Device/VrEyeDevice/release -lVrEyeDevice
|
|
LIBS += -L../../../VrNets/release -lModbusTCPServer
|
|
LIBS += -L../../../Module/ShareMem/release -lShareMem
|
|
LIBS += -L../../../VrNets/release -lVrModbus
|
|
LIBS += -L../../../VrNets/release -lVrTcpServer
|
|
}else:unix:!macx {
|
|
# Unix/Linux骞冲彴搴撻摼鎺ワ紙鍖呮嫭浜ゅ弶缂栬瘧锛? # 娉ㄦ剰閾炬帴椤哄簭锛氫緷璧栧叧绯讳粠楂樺埌浣庯紙琚緷璧栫殑搴撴斁鍦ㄥ悗闈級
|
|
LIBS += -L../ParticleSizeConfig -lParticleSizeConfig
|
|
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../../../VrNets -lModbusTCPServer
|
|
LIBS += -L../../../VrNets -lVrModbus
|
|
LIBS += -L../../../VrNets -lVrTcpServer
|
|
LIBS += -L../../../Module/ShareMem -lShareMem
|
|
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/particleSizeMeasure/Inc
|
|
INCLUDEPATH += ../../../SDK/Opencv320/include
|
|
|
|
win32:CONFIG(release, debug|release): {
|
|
LIBS += -L$$PWD/../../../AppAlgo/particleSizeMeasure/Windows/x64/Release -lparticleSizeMeasurement -lbaseAlgorithm
|
|
LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
|
|
}
|
|
else:win32:CONFIG(debug, debug|release): {
|
|
LIBS += -L$$PWD/../../../AppAlgo/particleSizeMeasure/Windows/x64/Debug -lparticleSizeMeasurement -lbaseAlgorithm
|
|
LIBS += -L$$PWD/../../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
|
|
}
|
|
else:unix:!macx: {
|
|
LIBS += -L$$PWD/../../../AppAlgo/particleSizeMeasure/Arm/aarch64 -lparticleSizeMeasurement -lbaseAlgorithm
|
|
LIBS += -L$$PWD/../../../SDK/OpenCV320/Arm/aarch64 -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_imgcodecs
|
|
}
|
|
|
|
# 娣诲姞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
|