-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
58 lines (48 loc) · 1.3 KB
/
CMakeLists.txt
File metadata and controls
58 lines (48 loc) · 1.3 KB
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
cmake_minimum_required(VERSION 2.8)
project(map_server)
set(PACKAGE_DEPENDENCIES
roscpp
visualization_msgs
sensor_msgs
pcl_ros
pcl_conversions
nav_msgs
std_msgs
std_srvs
octomap_ros
octomap_msgs
dynamic_reconfigure
nodelet
cv_bridge
image_transport
)
find_package(OpenCV REQUIRED)
find_package(catkin REQUIRED COMPONENTS ${PACKAGE_DEPENDENCIES})
find_package(PCL 1.8.0 EXACT REQUIRED QUIET COMPONENTS common sample_consensus io segmentation filters)
find_package(octomap REQUIRED)
add_definitions(-DOCTOMAP_NODEBUGOUT)
include_directories(
include
${OpenCV_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${OCTOMAP_INCLUDE_DIRS}
)
generate_dynamic_reconfigure_options(cfg/map_server.cfg)
catkin_package(
INCLUDE_DIRS include
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS ${PACKAGE_DEPENDENCIES}
DEPENDS octomap PCL
)
set(LINK_LIBS
${OpenCV_LIBRARIES}
${OCTOMAP_LIBRARIES}
${catkin_LIBRARIES}
${PCL_LIBRARIES}
)
FILE(GLOB_RECURSE SRC_LIST "src/*.cpp")
FILE(GLOB_RECURSE HEADER_LIST "include/map_server/*.h" "include/map_server/impl/*.hpp" "include/common.h")
link_directories(${PCL_LIBRARY_DIRS} ${OCTOMAP_LIBRARY_DIRS} ${OpenCV_LIBRARY_DIRS})
add_executable(dynamic_node src/dynamic_node.cpp ${HEADER_LIST})
target_link_libraries(dynamic_node ${LINK_LIBS})