-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
53 lines (48 loc) · 1.14 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
cmake_minimum_required(VERSION 2.8.3)
project(ypspur_ros_bridge)
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
nav_msgs
roscpp
tf
message_generation
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES ypspur_ros_bridge
CATKIN_DEPENDS geometry_msgs nav_msgs roscpp tf
# DEPENDS system_lib
)
###########
## Build ##
###########
include_directories(
include
/usr/local/include
${catkin_INCLUDE_DIRS}
)
link_directories(
/usr/local/lib
)
## Declare a cpp executable
add_executable(ypspur_ros_bridge_driver_node src/ypspur_ros_bridge_driver_node.cpp)
add_executable(ypspur_ros_bridge_odom_publisher_node src/ypspur_ros_bridge_odom_publisher_node.cpp)
add_dependencies(
ypspur_ros_bridge_driver_node
ypspur_ros_bridge_driver_node_generate_messages_cpp
)
add_dependencies(
ypspur_ros_bridge_odom_publisher_node
ypspur_ros_bridge_odom_publisher_node_generate_messages_cpp
)
## Specify libraries to link a library or executable target against
target_link_libraries(
ypspur_ros_bridge_driver_node
${catkin_LIBRARIES}
ypspur
)
target_link_libraries(
ypspur_ros_bridge_odom_publisher_node
ypspur
${catkin_LIBRARIES}
)