forked from youliangtan/3D_Slam_tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·62 lines (45 loc) · 1.74 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
cmake_minimum_required(VERSION 2.8.3)
project(3D_Slam_tools)
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
sensor_msgs
roscpp
rospy
std_msgs
tf
nav_msgs
tf2
)
find_package(Eigen3 REQUIRED)
find_package(PCL REQUIRED)
find_package(OCTOMAP REQUIRED)
include_directories(
include
${catkin_INCLUDE_DIRS}
#${EIGEN3_INCLUDE_DIR}
${PCL_INCLUDE_DIRS}
${OCTOMAP_INCLUDE_DIRS}
)
catkin_package(
CATKIN_DEPENDS geometry_msgs roscpp rospy std_msgs
DEPENDS EIGEN3 PCL #OCTOMAP
)
link_directories(${PCL_LIBRARY_DIRS} ${OCTOMAP_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS} ${OCTOMAP_DEFINITIONS})
add_definitions( -march=native )
add_executable(pcd2octomap_node src/pcd2octomap_node.cpp)
target_link_libraries(pcd2octomap_node ${catkin_LIBRARIES} ${PCL_LIBRARIES} ${OCTOMAP_LIBRARIES} )
add_executable(pcd2octomap src/pcd2octomap.cpp)
target_link_libraries(pcd2octomap ${catkin_LIBRARIES} ${PCL_LIBRARIES} ${OCTOMAP_LIBRARIES} )
add_executable(pc_frame_conversion_node src/pc_frame_conversion_node.cpp)
target_link_libraries(pc_frame_conversion_node ${catkin_LIBRARIES} ${PCL_LIBRARIES} ${OCTOMAP_LIBRARIES} )
add_executable(pcd2ply src/pcd2ply.cpp)
target_link_libraries(pcd2ply ${catkin_LIBRARIES} ${PCL_LIBRARIES} )
add_executable(ply2pcd src/ply2pcd.cpp)
target_link_libraries(ply2pcd ${catkin_LIBRARIES} ${PCL_LIBRARIES} )
add_executable(odom_handler src/odom_handler.cpp)
target_link_libraries(odom_handler ${catkin_LIBRARIES} ${PCL_LIBRARIES})
add_executable(carto_map_saver src/carto_map_saver.cpp)
target_link_libraries(carto_map_saver ${catkin_LIBRARIES} ${PCL_LIBRARIES})
add_executable(pcd_topic_saver src/pcd_topic_saver.cpp)
target_link_libraries(pcd_topic_saver ${catkin_LIBRARIES} ${PCL_LIBRARIES} ${OCTOMAP_LIBRARIES} )