-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (21 loc) · 888 Bytes
/
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
# %Tag(FULLTEXT)%
cmake_minimum_required(VERSION 2.8.3)
project(beginner_tutorials)
## Find catkin and any catkin packages
find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs genmsg message_generation)
## Declare ROS messages and services
add_message_files(FILES number.msg intlist.msg)
##add_service_files(FILES AddTwoInts.srv)
## Generate added messages and services
generate_messages(DEPENDENCIES std_msgs)
## Declare a catkin package
catkin_package()
## Build talker and listener
include_directories(include ${catkin_INCLUDE_DIRS})
add_executable(generator src/generator.cpp)
target_link_libraries(generator ${catkin_LIBRARIES})
add_dependencies(generator random_gen_generate_messages_cpp)
add_executable(acceptor src/acceptor.cpp)
target_link_libraries(acceptor ${catkin_LIBRARIES})
add_dependencies(acceptor random_gen_generate_messages_cpp)
# %EndTag(FULLTEXT)%