cmake_dependent_option(ENABLE_SENSEAPI_livoxGen1
	"Enable Livox Gen1 LiDAR sense API" ON
	"ENABLE_LIB_livoxProto1" OFF)

if(ENABLE_SENSEAPI_livoxGen1)
	add_library(livoxGen1 SHARED
		livoxGen1.cpp
	)

	# Set config define for header generation
	add_compile_definitions(CONFIG_SENSEAPI_LIVOXGEN1_ENABLED)
	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()
