-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
48 lines (39 loc) · 1.28 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
cmake_minimum_required(VERSION 2.8.3)
project(LocalNav)
## Add support for C++11, supported in ROS Kinetic and newer
add_definitions(-std=c++11)
# Get the information about this package's buildtime dependencies
find_package(catkin
REQUIRED COMPONENTS
roscpp
std_msgs
sensor_msgs
pcl_ros
grid_map_ros
grid_map_pcl
pcl_conversions
)
# Declare that this catkin package's runtime dependencies
catkin_package(
CATKIN_DEPENDS
roscpp
message_runtime
std_msgs
sensor_msgs
grid_map_ros
pcl_ros
grid_map_pcl
pcl_conversions
DEPENDS
PCL
)
find_package(PCL REQUIRED COMPONENTS common surface kdtree)
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
include_directories(${catkin_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS})
add_executable(gridmap2costmap src/gridmap2costmap.cpp)
add_executable(pointcloud2gridmap src/pointcloud2gridmap.cpp)
add_dependencies(gridmap2costmap ${PROJECT_NAME}_gencfg ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
add_dependencies(pointcloud2gridmap ${PROJECT_NAME}_gencfg ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(gridmap2costmap ${catkin_LIBRARIES})
target_link_libraries(pointcloud2gridmap ${PCL_LIBRARIES} ${catkin_LIBRARIES})