-
Notifications
You must be signed in to change notification settings - Fork 65
/
CMakeLists.txt
57 lines (43 loc) · 1.45 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
cmake_minimum_required(VERSION 2.8.3)
project(lidar_localizer)
add_compile_options(-std=c++11)
find_package(PCL REQUIRED)
find_package(Eigen3 QUIET)
if (NOT EIGEN3_FOUND)
find_package(cmake_modules REQUIRED)
find_package(Eigen REQUIRED)
set(EIGEN3_INCLUDE_DIRS ${EIGEN_INCLUDE_DIRS})
set(EIGEN3_LIBRARIES ${EIGEN_LIBRARIES})
else ()
set(EIGEN3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
endif ()
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
nav_msgs
tf
pcl_ros
sensor_msgs
pcl_conversions
)
###################################
## catkin specific configuration ##
###################################
catkin_package(
CATKIN_DEPENDS std_msgs
DEPENDS PCL
)
###########
## Build ##
###########
include_directories(include ${catkin_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS})
SET(CMAKE_CXX_FLAGS "-O2 -g -Wall ${CMAKE_CXX_FLAGS}")
add_executable(ndt_mapping src/ndt_mapping_node.cpp src/ndt_mapping.cpp)
target_link_libraries(ndt_mapping ${catkin_LIBRARIES})
add_dependencies(ndt_mapping ${catkin_EXPORTED_TARGETS})
add_executable(ndt_mapping_submaps src/ndt_mapping_submaps.cpp)
target_link_libraries(ndt_mapping_submaps ${catkin_LIBRARIES})
add_dependencies(ndt_mapping_submaps ${catkin_EXPORTED_TARGETS})
add_executable(ndt_matching src/ndt_matching.cpp)
target_link_libraries(ndt_matching ${catkin_LIBRARIES})
add_dependencies(ndt_matching ${catkin_EXPORTED_TARGETS})