2025-10-01 18:47:42 -04:00
|
|
|
cmake_dependent_option(ENABLE_STIMBUFFAPI_livoxGen1
|
|
|
|
|
"Enable Livox Gen1 LiDAR stim buff API" ON
|
2025-09-10 19:44:17 -04:00
|
|
|
"ENABLE_LIB_livoxProto1" OFF)
|
2025-09-05 00:08:25 -04:00
|
|
|
|
2025-10-01 18:47:42 -04:00
|
|
|
if(ENABLE_STIMBUFFAPI_livoxGen1)
|
|
|
|
|
# Set CONFIG variable for config.h
|
|
|
|
|
set(CONFIG_STIMBUFFAPI_LIVOXGEN1_ENABLED 1)
|
|
|
|
|
|
2025-09-05 00:08:25 -04:00
|
|
|
add_library(livoxGen1 SHARED
|
|
|
|
|
livoxGen1.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_include_directories(livoxGen1 PUBLIC
|
|
|
|
|
${Boost_INCLUDE_DIRS}
|
|
|
|
|
${CMAKE_SOURCE_DIR}/commonLibs
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(livoxGen1
|
|
|
|
|
${Boost_LIBRARIES}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Install rules
|
|
|
|
|
install(TARGETS livoxGen1 DESTINATION lib)
|
|
|
|
|
endif()
|