forked from porizou/livox_to_pointcloud2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (32 loc) · 1018 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.5)
project(livox_to_pointcloud2)
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
find_package(PCL REQUIRED)
find_package(pcl_conversions REQUIRED)
# find dependencies using ament auto
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()
## PCL library
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
# Declare executables
ament_auto_add_executable(livox_to_pointcloud2_node src/livox_to_pointcloud2_node.cpp src/livox_to_pointcloud2.cpp)
# include file direcotry
target_include_directories(livox_to_pointcloud2_node PUBLIC
${PCL_INCLUDE_DIRS}
)
# link libraries
target_link_libraries(livox_to_pointcloud2_node
${PCL_LIBRARIES}
)
ament_target_dependencies(livox_to_pointcloud2_node pcl_conversions)
# Install rules
ament_auto_package(INSTALL_TO_SHARE
launch
)