Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if(WIN32)
cmake_policy(SET CMP0074 NEW)
endif(WIN32)
project(rs_driver VERSION 1.3.0)
add_library(rs_driver INTERFACE)

#=============================
# Compile Demos&Tools
Expand Down Expand Up @@ -83,6 +84,7 @@ endif(WIN32)

find_package(Boost COMPONENTS system date_time regex REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
target_include_directories(${PROJECT_NAME} INTERFACE ${Boost_INCLUDE_DIRS})
list(APPEND EXTERNAL_LIBS ${Boost_LIBRARIES})

#========================
Expand All @@ -92,6 +94,7 @@ if(WIN32)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
find_package(PCAP REQUIRED)
include_directories(${PCAP_INCLUDE_DIR})
target_include_directories(${PROJECT_NAME} INTERFACE ${PCAP_INCLUDE_DIR})
list(APPEND EXTERNAL_LIBS ${PCAP_LIBRARY})
else()
list(APPEND EXTERNAL_LIBS pcap)
Expand All @@ -104,6 +107,7 @@ if(${ENABLE_TRANSFORM})
add_definitions("-DENABLE_TRANSFORM")
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
target_include_directories(${PROJECT_NAME} INTERFACE ${EIGEN3_INCLUDE_DIR})
message(=============================================================)
message("-- Enable Transform Fcuntions")
message(=============================================================)
Expand Down Expand Up @@ -165,4 +169,4 @@ if(UNIX AND ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
endif(NOT TARGET uninstall)
endif(UNIX AND ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
endif(UNIX AND ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
2 changes: 1 addition & 1 deletion src/rs_driver/driver/decoder/decoder_factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class DecoderFactory
~DecoderFactory() = default;
static std::shared_ptr<DecoderBase<T_Point>> createDecoder(const RSDriverParam& param);

private:
public:
static const LidarConstantParameter getRS16ConstantParam();
static const LidarConstantParameter getRS32ConstantParam();
static const LidarConstantParameter getRSBPConstantParam();
Expand Down