-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
67 lines (58 loc) · 1.41 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
cmake_minimum_required(VERSION 2.4.6)
project(phidgets)
find_package(
catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
nav_msgs
geometry_msgs
tf
sensor_msgs
sound_play
move_base_msgs
actionlib
rviz
message_generation
roscpp_serialization
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
)
## Generate messages in the 'msg' folder
add_message_files(
FILES
motor_params.msg
motor_encoder.msg
interface_kit_params.msg
)
## Generate services in the 'srv' folder
add_service_files(
FILES
lidar_control.srv
interface_kit.srv
)
generate_messages(
DEPENDENCIES
std_msgs
nav_msgs
sensor_msgs
geometry_msgs
)
catkin_package(
INCLUDE_DIRS
LIBRARIES
CATKIN_DEPENDS roscpp rospy std_msgs sensor_msgs nav_msgs tf sound_play move_base_msgs actionlib rviz message_runtime roscpp_serialization
DEPENDS
)
add_executable(interface_kit src/interface_kit.cpp)
add_dependencies(interface_kit phidgets_generate_messages_cpp)
add_executable(interface_kit_client src/interface_kit_client.cpp)
add_dependencies(interface_kit_client phidgets_generate_messages_cpp)
add_executable(motor src/motor.cpp)
add_dependencies(motor phidgets_generate_messages_cpp)
target_link_libraries(motor phidget21 ${catkin_LIBRARIES})
target_link_libraries(interface_kit phidget21 ${catkin_LIBRARIES})
target_link_libraries(interface_kit_client phidget21 ${catkin_LIBRARIES})