The repo is now self-contained: driver_rplidar compiles the SDK from third_party/rplidar_sdk (Linux sources only, teardown delete[] bug fixed in place), so a plain cmake configure needs no SDK path and no probing — the XLIDAR_RPLIDAR_SDK_DIR option and external references are gone. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
13 lines
471 B
CMake
13 lines
471 B
CMake
# Compiles the vendored Slamtec SDK (third_party/rplidar_sdk) straight into
|
|
# the plugin .so — no external dependency.
|
|
set(RPLIDAR_SDK_DIR ${CMAKE_SOURCE_DIR}/third_party/rplidar_sdk)
|
|
|
|
file(GLOB_RECURSE RPLIDAR_SDK_SOURCES CONFIGURE_DEPENDS
|
|
${RPLIDAR_SDK_DIR}/src/*.cpp)
|
|
|
|
xlidar_add_plugin(driver_rplidar rplidar_driver.cpp ${RPLIDAR_SDK_SOURCES})
|
|
target_include_directories(driver_rplidar SYSTEM PRIVATE
|
|
${RPLIDAR_SDK_DIR}/include
|
|
${RPLIDAR_SDK_DIR}/src
|
|
)
|