10afec2532
We haven't genericized it with an unordered_map or integrated it into device.cpp's async methods yet.
21 lines
539 B
CMake
21 lines
539 B
CMake
option(ENABLE_LIB_livoxProto1 "Enable Livox Protocol v1 backend lib" ON)
|
|
|
|
if(ENABLE_LIB_livoxProto1)
|
|
add_library(livoxProto1 SHARED
|
|
livoxProto1.cpp
|
|
core.cpp
|
|
device.cpp
|
|
protocol.cpp
|
|
broadcastListener.cpp
|
|
udpCommandDemuxer.cpp
|
|
)
|
|
|
|
# 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()
|