# GlLineLaserDevice.pro # GL 线激光设备封装库 TEMPLATE = lib CONFIG += staticlib DEFINES += GLLINELASERDEVICE_LIBRARY CONFIG += c++17 # 包含路径 INCLUDEPATH += ./Inc INCLUDEPATH += ./_Inc INCLUDEPATH += ../../VrCommon/Inc INCLUDEPATH += ../../Device/VrEyeDevice/Inc # SDK 头文件路径 INCLUDEPATH += $$PWD/../../SDK/Device/gl_linelaser_sdk/include INCLUDEPATH += $$PWD/../../SDK/Device/VzNLSDK/Inc # 源文件 SOURCES += \ Src/GlLineLaserDevice.cpp # 头文件 HEADERS += \ Inc/IGlLineLaserDevice.h \ Inc/GlLineLaserDevice_global.h \ _Inc/GlLineLaserDevice.h # VrUtils 依赖 INCLUDEPATH += $$PWD/../../VrUtils/Inc INCLUDEPATH += $$PWD/../../VrUtils/ini win32:CONFIG(debug, debug|release) { LIBS += -L../../VrUtils/debug -lVrUtils }else:win32:CONFIG(release, debug|release){ LIBS += -L../../VrUtils/release -lVrUtils }else:unix:!macx { LIBS += -L../../VrUtils -lVrUtils } # gl_linelaser_sdk 库链接 win32:CONFIG(release, debug|release): { contains(QMAKE_TARGET.arch, x86_64) { LIBS += -L$$PWD/../../SDK/Device/gl_linelaser_sdk/x64 -lgl_linelaser_sdk } else { LIBS += -L$$PWD/../../SDK/Device/gl_linelaser_sdk/x86 -lgl_linelaser_sdk } } else:win32:CONFIG(debug, debug|release): { contains(QMAKE_TARGET.arch, x86_64) { LIBS += -L$$PWD/../../SDK/Device/gl_linelaser_sdk/x64 -lgl_linelaser_sdk } else { LIBS += -L$$PWD/../../SDK/Device/gl_linelaser_sdk/x86 -lgl_linelaser_sdk } } else:unix:!macx: { # Linux aarch64 平台 LIBS += -L$$PWD/../../SDK/Device/gl_linelaser_sdk/aarch64_linux -lgl_linelaser_sdk LIBS += -ldl -lpthread } # Windows 特定设置 win32 { LIBS += -lws2_32 } # Unix 特定设置 unix { QMAKE_CXXFLAGS += -fPIC target.path = /usr/lib } !isEmpty(target.path): INSTALLS += target