-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
81 lines (59 loc) · 1.75 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
73
74
75
76
77
cmake_minimum_required(VERSION 2.8.3)
project(heron)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
tf
std_msgs
nav_msgs
message_generation
actionlib)
catkin_python_setup()
add_message_files(
DIRECTORY
msg
FILES
ValueUnitFloat.msg
ValueUnitInt.msg
winch.msg
Motion.msg
Encoders.msg
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
CATKIN_DEPENDS roscpp rospy std_msgs message_runtime
)
include_directories(
${catkin_INCLUDE_DIRS}
)
include_directories(include
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${GSTREAMER_INCLUDE_DIRS})
# for motor control node
set(${PROJECT_NAME}_SOURCES
src/nodes/MotorControl/drive
src/nodes/MotorControl/Constants
src/nodes/MotorControl/ErrorCodes
src/nodes/MotorControl/RoboteqDevice
src/nodes/MotorControl/RobotSpecs)
add_executable(drive ${${PROJECT_NAME}_SOURCES})
target_link_libraries(drive ${catkin_LIBRARIES})
add_dependencies(drive heron_generate_messages_cpp)
add_executable(odom src/nodes/MotorControl/odom.cpp)
target_link_libraries(odom ${catkin_LIBRARIES})
add_dependencies(odom heron_generate_messages_cpp)
add_executable(tf_broadcaster src/nodes/tf/tf_broadcaster.cpp)
target_link_libraries(tf_broadcaster ${catkin_LIBRARIES})
#add_dependencies(tf_broadcaster heron_generate_messages_cpp)
add_executable(tf_robot src/nodes/tf/tf_robot.cpp)
target_link_libraries(tf_robot ${catkin_LIBRARIES})
foreach(dir config launch meshes urdf)
install(DIRECTORY ${dir}/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
endforeach(dir)
add_executable(simple_navigation_goal src/nodes/actions/simple_navigation_goal.cpp)
target_link_libraries(simple_navigation_goal ${catkin_LIBRARIES})