-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
66 lines (50 loc) · 1.23 KB
/
CMakeLists.txt
File metadata and controls
66 lines (50 loc) · 1.23 KB
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
cmake_minimum_required(VERSION 2.8.3)
project(i2c_interface)
add_definitions(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
roscpp
geometry_msgs
sensor_msgs
std_msgs
message_generation
)
################################################
## Declare ROS messages, services and actions ##
################################################
add_service_files(
FILES
DeviceWriteString.srv
DeviceReadString.srv
DeviceWriteBytes.srv
DeviceReadBytes.srv
DeviceSetPoll.srv
DeviceStopPoll.srv
)
generate_messages(DEPENDENCIES std_msgs)
################################################
## Declare ROS dynamic reconfigure parameters ##
################################################
###################################
## catkin specific configuration ##
###################################
catkin_package(
CATKIN_DEPENDS
message_runtime
std_msgs
)
###########
## Build ##
###########
include_directories(
# include
${catkin_INCLUDE_DIRS}
)
#############
## Install ##
#############
#############
## Testing ##
#############
add_executable(i2c_interface_node src/i2c_interface_node.cpp)
add_dependencies(i2c_interface_node i2c_interface_generate_messages_cpp)
target_link_libraries(i2c_interface_node ${catkin_LIBRARIES})