GrabBag/Tools/VrEyeView/VrEyeView.pro

99 lines
3.0 KiB
Prolog
Raw Normal View History

# VrEyeView - 鐩告満鍥惧儚鏌ョ湅涓庢爣瀹氭澘妫娴嬪伐鍏?
2026-03-28 10:49:55 +08:00
QT += core gui widgets
CONFIG += c++17
CONFIG -= app_bundle
# Windows骞冲彴UTF-8缂栫爜鏀寔
2026-03-28 10:49:55 +08:00
win32-msvc {
QMAKE_CXXFLAGS += /utf-8
QMAKE_CXXFLAGS += /bigobj
}
TARGET = VrEyeView
TEMPLATE = app
# 椤圭洰鐩綍
2026-03-28 10:49:55 +08:00
INCLUDEPATH += $$PWD/Inc
INCLUDEPATH += $$PWD/../../Device/VrEyeDevice/Inc
INCLUDEPATH += $$PWD/../../Device/VrEyeDevice/_Inc
INCLUDEPATH += $$PWD/../../Module/ChessboardDetector/Inc
INCLUDEPATH += $$PWD/../../Module/ChessboardDetector/_Inc
INCLUDEPATH += $$PWD/../../Utils/VrCommon/Inc
# VzNLSDK 澶存枃浠惰矾寰?
INCLUDEPATH += $$PWD/../../Device/SDK/VzNLSDK/Inc
2026-03-28 10:49:55 +08:00
# 澶存枃浠?
2026-03-28 10:49:55 +08:00
HEADERS += \
Inc/VrEyeViewWidget.h
# 婧愭枃浠?
2026-03-28 10:49:55 +08:00
SOURCES += \
main.cpp \
Src/VrEyeViewWidget.cpp
win32:CONFIG(release, debug|release): {
LIBS += -L$$PWD/../../Device/SDK/VzNLSDK/Windows/x64/Release
2026-03-28 10:49:55 +08:00
LIBS += -lVzKernel -lVzNLDetect -lVzNLGraphics
}
else:win32:CONFIG(debug, debug|release): {
LIBS += -L$$PWD/../../Device/SDK/VzNLSDK/Windows/x64/Debug
2026-03-28 10:49:55 +08:00
LIBS += -lVzKerneld -lVzNLDetectd -lVzNLGraphicsd
}
else:unix:!macx: {
LIBS += -L$$PWD/../../Device/SDK/VzNLSDK/Arm/aarch64
2026-03-28 10:49:55 +08:00
LIBS += -lVzEyeSecurityLoader-shared -lVzKernel -lVzNLDetect -lVzNLGraphics
}
# OpenCV 閰嶇疆
2026-03-28 10:49:55 +08:00
win32:CONFIG(release, debug|release): {
LIBS += -L$$PWD/../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
}
else:win32:CONFIG(debug, debug|release): {
LIBS += -L$$PWD/../../SDK/OpenCV320/Windows/vc14/Release -lopencv_world320
}
else:unix:!macx: {
LIBS += -L$$PWD/../../SDK/OpenCV320/Arm/aarch64 -lopencv_core -lopencv_imgproc -lopencv_highgui
}
# Windows骞冲彴搴撻摼鎺?
2026-03-28 10:49:55 +08:00
win32:CONFIG(release, debug|release): {
LIBS += -L../../Utils/CloudUtils/release -lCloudUtils
LIBS += -L../../Device/VrEyeDevice/release -lVrEyeDevice
LIBS += -L../../Module/ChessboardDetector/release -lChessboardDetector
LIBS += -L../../Utils/VrCommon/release -lVrCommon
LIBS += -L../../Utils/VrUtils/release -lVrUtils
}
else:win32:CONFIG(debug, debug|release): {
LIBS += -L../../Utils/CloudUtils/debug -lCloudUtils
LIBS += -L../../Device/VrEyeDevice/debug -lVrEyeDeviced
LIBS += -L../../Module/ChessboardDetector/debug -lChessboardDetectord
LIBS += -L../../Utils/VrCommon/debug -lVrCommon
LIBS += -L../../Utils/VrUtils/debug -lVrUtils
}
# Unix骞冲彴搴撻摼鎺?
2026-03-28 10:49:55 +08:00
unix {
LIBS += -L../../Device/VrEyeDevice -lVrEyeDevice
LIBS += -L../../Module/ChessboardDetector -lChessboardDetector
LIBS += -L../../Utils/VrCommon -lVrCommon
LIBS += -L$$PWD/../../Device/SDK/VzNLSDK/Arm/aarch64 -lVzKernel
2026-03-28 10:49:55 +08:00
QMAKE_CXXFLAGS += -fPIC
}
# Windows绯荤粺搴?
2026-03-28 10:49:55 +08:00
win32 {
LIBS += -lAdvapi32
LIBS += -lws2_32
}
DEFINES += _USE_MATH_DEFINES
# Default rules for deployment
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target