-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
85 lines (76 loc) · 1.7 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
78
79
80
81
82
83
84
85
cmake_minimum_required(VERSION 3.0.2)
project(visual_ndt_ros)
## 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
find_package(catkin REQUIRED COMPONENTS
ndt_omp
roscpp
rospy
std_msgs
sensor_msgs
pcl_ros
pcl_conversions
tf
tf_conversions
)
find_package(Eigen3 REQUIRED)
# add_compile_options(-std=c++11)
find_package(PCL 1.7 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
message(STATUS "PCL_INCLUDE_DIRS:" ${PCL_INCLUDE_DIRS})
message(STATUS "PCL_LIBRARY_DIRS:" ${PCL_LIBRARY_DIRS})
message(STATUS "PCL_DEFINITIONS:" ${PCL_DEFINITIONS})
###################################
## catkin specific configuration ##
###################################
catkin_package(
CATKIN_DEPENDS ndt_omp
)
###########
## Build ##
###########
include_directories(
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
)
add_executable(pointcloud_mapping
src/pointcloud_mapping.cpp
)
add_dependencies(pointcloud_mapping
ndt_omp
)
target_link_libraries(pointcloud_mapping
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${EIGEN3_LIBRARIES}
ndt_omp
)
add_executable(ndt_optimizer
src/ndt_optimizer.cpp
)
add_dependencies(ndt_optimizer
ndt_omp
)
target_link_libraries(ndt_optimizer
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${EIGEN3_LIBRARIES}
ndt_omp
)
add_executable(ndt_odometry
src/ndt_odometry.cpp
)
add_dependencies(ndt_odometry
ndt_omp
)
target_link_libraries(ndt_odometry
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${EIGEN3_LIBRARIES}
ndt_omp
)