-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
40 lines (32 loc) · 1.09 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
cmake_minimum_required(VERSION 2.8.3)
project(teraranger_hub)
# search for everything we need to build the package
find_package(catkin REQUIRED COMPONENTS
roscpp
sensor_msgs
std_msgs
dynamic_reconfigure
)
# since we need boost search it as well
# find_package makes the ${..._INCLUDE_DIRS} ${..._LIBRARIES} variables we use later
find_package(Boost REQUIRED COMPONENTS system thread)
generate_dynamic_reconfigure_options(
cfg/Teraranger_hub.cfg
)
# export the dependencis of this package for who ever depends on us
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS roscpp sensor_msgs std_msgs dynamic_reconfigure
DEPENDS boost
)
# tell catkin where to find the headers for this project
include_directories(
include
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)
# make the executables
add_executable( teraranger_hub_node src/teraranger_hub.cpp src/serial_port.cpp )
add_dependencies( teraranger_hub_node ${catkin_EXPORTED_TARGETS} )
add_dependencies(teraranger_hub_node ${PROJECT_NAME}_gencfg)
target_link_libraries( teraranger_hub_node ${catkin_LIBRARIES} ${Boost_LIBRARIES} )