GrabBag/Device/RsLidarDevice/RsLidarDevice.pro
2026-06-13 13:24:31 +08:00

58 lines
1.3 KiB
Prolog
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# RsLidarDevice - 速腾聚创 LiDAR 二次封装库
TEMPLATE = lib
CONFIG += staticlib
# 使用 C++14 而非 C++17 MSVC C++17 默认启用 /permissive-
# 会导致 rs_driver SDK uint8_t*/char* 类型不兼容和 compress_algo.hpp 语法错误
CONFIG += c++14
CONFIG -= qt
DEFINES += RSLIDARDEVICE_LIBRARY
# 禁用 PCAP 文件回放(不需要 WinPcap/Npcap 依赖),如需 PCAP 功能请移除此行
DEFINES += DISABLE_PCAP_PARSE
# 启用 socket 接收缓冲区调整setsockopt SO_RCVBUF
DEFINES += ENABLE_MODIFY_RECVBUF
TARGET = RsLidarDevice
# 支持 UTF-8 编码
win32-msvc {
QMAKE_CXXFLAGS += /utf-8
QMAKE_CFLAGS += /utf-8
}
INCLUDEPATH += ./Inc
INCLUDEPATH += ./_Inc
# 项目标准类型SVzNLPointXYZI 等)
INCLUDEPATH += $$PWD/../../Utils/VrCommon/Inc
# rs_driver SDK 头文件路径header-only
INCLUDEPATH += $$PWD/../../SDK/Lidar/rslidar/rs_driver/src
SOURCES += \
Src/RsLidarDevice.cpp
HEADERS += \
Inc/IRsLidarDevice.h \
Inc/RsLidarDevice_global.h \
_Inc/RsLidarDevice.h
# Windows: 需要 WinSock2 用于在线雷达网络通信
win32 {
LIBS += -lws2_32
}
# Linux: pthread 和实时库
unix:!macx {
LIBS += -lpthread -lrt
}
# Default rules for deployment.
unix {
target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target