-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCMakeLists.txt
72 lines (57 loc) · 2.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
63
64
65
66
67
68
69
70
71
72
cmake_minimum_required(VERSION 2.4.6)
project(roomba_500_series)
find_package(catkin REQUIRED COMPONENTS
roscpp
rosconsole
sensor_msgs
geometry_msgs
actionlib_msgs
cereal_port
tf
)
# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
# Debug : w/ debug symbols, w/o optimization
# Release : w/o debug symbols, w/ optimization
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)
#include(${actionlib_msgs_PACKAGE_PATH}/cmake/actionbuild.cmake)
#genaction()
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS roscpp rosconsole geometry_msgs
DEPENDS geometry_msgs
)
include_directories(
include
msg_gen/cpp/include
${catkin_INCLUDE_DIRS}
${CEREAL_PORT_INCLUDE_DIRS}
)
#~rosbuild_init()
#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set the default path for built libraries to the "lib" directory
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
#uncomment if you have defined messages
#rosbuild_genmsg()
add_library(irobot_oi src/iRobot/OpenInterface.cpp)
add_library(go_dock src/GoDock/GoDock.cpp)
add_executable(roomba560_node src/roomba560.cpp src/iRobot/OpenInterface.cpp src/GoDock/GoDock.cpp)
target_link_libraries(roomba560_node cereal_port ${catkin_LIBRARIES})
add_executable(roomba500_light_node src/roomba500_lightweight.cpp src/iRobot/OpenInterface.cpp)
target_link_libraries(roomba500_light_node cereal_port ${catkin_LIBRARIES})
add_executable(godock_server src/godock_server.cpp src/GoDock/GoDock.cpp)
target_link_libraries(godock_server ${catkin_LIBRARIES})
add_executable(godock_client src/godock_client.cpp)
target_link_libraries(godock_client ${catkin_LIBRARIES})
install(TARGETS roomba560_node roomba500_light_node
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
#install(DIRECTORY launch rviz sdk
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
# USE_SOURCE_PERMISSIONS
#)