-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
executable file
·77 lines (61 loc) · 1.56 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
cmake_minimum_required(VERSION 3.0.2)
project(lidar_road)
## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
set(
PCL_PACKAGE_DEPENDENCIES
pcl_conversions
pcl_ros
)
find_package(catkin REQUIRED COMPONENTS
roscpp
sensor_msgs
std_msgs
${PCL_PACKAGE_DEPENDENCIES}
# ${VELODYNE_PACKAGE_DEPENDENCIES}
)
## System dependencies are found with CMake's conventions
find_package(PCL REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
catkin_package(
INCLUDE_DIRS include
# LIBRARIES lidar_road
CATKIN_DEPENDS
roscpp
sensor_msgs
std_msgs
${PCL_PACKAGE_DEPENDENCIES}
# DEPENDS system_lib
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
)
add_library(
${PROJECT_NAME}_lib
src/intensity_filter.cpp
)
add_executable(intensity_filter_node src/intensity_filter_node.cpp src/intensity_filter.cpp)
target_link_libraries(intensity_filter_node
${catkin_LIBRARIES}
${PCL_LIBRARIES}
# ${PROJECT_NAME}_lib
)
add_executable(ground_filter_node src/ground_filter_node.cpp src/ground_filter.cpp)
target_link_libraries(ground_filter_node
${catkin_LIBRARIES}
${PCL_LIBRARIES}
# ${PROJECT_NAME}_lib
)