-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
72 lines (57 loc) · 1.24 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
cmake_minimum_required(VERSION 3.0.2)
project(underwater_inspection)
add_compile_options(-std=c++11 -g) # -g for gdb
set(CMAKE_BUILD_TYPE "Debug")
find_package(catkin REQUIRED COMPONENTS
# greensea_msgs
inspection_planner_msgs
roscpp
rospy
std_msgs
sensor_msgs
message_generation
tf
)
find_package(octomap REQUIRED)
# find_package(Eigen3 REQUIRED)
add_message_files(
FILES
ViewpointInfo.msg
MultiViewpointInfo.msg
)
add_service_files(
FILES
DepleteBattery.srv
BatteryUsage.srv
CarveMap.srv
)
generate_messages(
DEPENDENCIES
std_msgs
sensor_msgs
geometry_msgs
inspection_planner_msgs
underwater_inspection
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES underwater_inspection
CATKIN_DEPENDS roscpp rospy std_msgs message_runtime
# DEPENDS system_lib
)
include_directories(
# include
include/underwater_inspection
${catkin_INCLUDE_DIRS}
${OCTOMAP_INCLUDE_DIRS}
# ${EIGEN3_INCLUDE_DIRS}
)
link_libraries(${OCTOMAP_LIBRARIES})
# ${EIGEN3_LIBRARY_DIRS}
add_executable(${PROJECT_NAME}_node src/map_carving.cpp)
## Specify libraries to link a library or executable target against
target_link_libraries(${PROJECT_NAME}_node
${catkin_LIBRARIES}
${OCTOMAP_LIBRARIES}
# ${EIGEN3_LIBRARIES}
)