-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
80 lines (68 loc) · 1.55 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
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(curvy_terrain_mapper)
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++2a")
find_package(PCL 1.8 REQUIRED)
find_package(yaml-cpp REQUIRED)
find_package(catkin REQUIRED
COMPONENTS
roscpp
sensor_msgs
visualization_msgs
#pcl_ros
#message_generation
tf_conversions
tf
dynamic_reconfigure
)
if( NOT CMAKE_BUILD_TYPE )
set( CMAKE_BUILD_TYPE Release CACHE STRING
"Choosing Release build type - the fastest option."
FORCE )
endif()
generate_dynamic_reconfigure_options(
cfg/CurvyTerrainMapperConfig.cfg
)
#add_message_files(
# DIRECTORY
# msg
# FILES
# PointCloud2Array.msg
# )
#generate_messages(
# DEPENDENCIES
# sensor_msgs
#)
catkin_package(
CATKIN_DEPENDS roscpp
)
include_directories(
${catkin_INCLUDE_DIRS}
#${colormap_SOURCE_DIR}/include
)
include_directories (${PCL_INCLUDE_DIRS})
include_directories ("${PROJECT_SOURCE_DIR}/include")
link_directories (${PCL_LIBRARY_DIRS})
add_definitions (${PCL_DEFINITIONS})
add_executable( curvy_terrain_mapper_node
src/curvy_terrain_mapper_node.cpp
src/preanalysis.cpp
src/regions.cpp
src/segmentPatch.cpp
src/regiongrowing.cpp
src/voxSAC.cpp
src/splitmerge.cpp
src/planeshape.cpp
src/Stairs.cpp
src/StairVector.cpp
src/recognition.cpp
src/prediction.cpp
)
add_dependencies( curvy_terrain_mapper_node
curvy_terrain_mapper_gencfg
curvy_terrain_mapper_gencpp
)
target_link_libraries( curvy_terrain_mapper_node
${catkin_LIBRARIES}
${PCL_LIBRARIES}
yaml-cpp
)