2025-09-05 00:08:25 -04:00
|
|
|
option(ENABLE_LIB_livoxProto1 "Enable Livox Protocol v1 backend lib" OFF)
|
|
|
|
|
|
|
|
|
|
if(ENABLE_LIB_livoxProto1)
|
|
|
|
|
add_library(livoxProto1 SHARED
|
|
|
|
|
livoxProto1.cpp
|
|
|
|
|
livoxProto1Core.cpp
|
|
|
|
|
livoxProto1Device.cpp
|
|
|
|
|
livoxProto1Protocol.cpp
|
2025-09-06 08:50:07 -04:00
|
|
|
broadcastListener.cpp
|
2025-09-05 00:08:25 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Set config define for header generation
|
|
|
|
|
add_compile_definitions(CONFIG_LIB_LIVOXPROTO1_ENABLED)
|
|
|
|
|
target_include_directories(livoxProto1 PUBLIC ${Boost_INCLUDE_DIRS})
|
|
|
|
|
target_link_libraries(livoxProto1 ${Boost_LIBRARIES})
|
|
|
|
|
|
|
|
|
|
# Install rules
|
|
|
|
|
install(TARGETS livoxProto1 DESTINATION lib)
|
|
|
|
|
endif()
|