forked from segwayrmp/segway_rmp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
62 lines (50 loc) · 1.17 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
cmake_minimum_required(VERSION 2.8.3)
project(segway_rmp)
find_package(catkin REQUIRED
COMPONENTS
geometry_msgs
message_generation
message_runtime
nav_msgs
roscpp
serial
std_msgs
tf
)
find_package(Boost REQUIRED COMPONENTS system thread)
find_package(libsegwayrmp REQUIRED)
add_message_files(
DIRECTORY msg
FILES SegwayStatus.msg SegwayStatusStamped.msg
)
generate_messages(DEPENDENCIES std_msgs)
include_directories(
${Boost_INCLUDE_DIRS}
${libsegwayrmp_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
)
catkin_package(
DEPENDS libsegwayrmp
CATKIN_DEPENDS
geometry_msgs
nav_msgs
roscpp
serial
std_msgs
tf
)
add_executable(segway_rmp_node src/segway_rmp_node.cpp)
message("libsegwayrmp_LIBRARIES: ${libsegwayrmp_LIBRARIES}")
target_link_libraries(segway_rmp_node
${Boost_LIBRARIES}
${libsegwayrmp_LIBRARIES}
${catkin_LIBRARIES}
)
install(TARGETS segway_rmp_node
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)