-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (34 loc) · 1.11 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
cmake_minimum_required(VERSION 2.8.3)
project(testpack)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
message_generation
geometry_msgs
)
add_service_files(
FILES
DirAndDis.srv
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
CATKIN_DEPENDS message_runtime geometry_msgs
)
include_directories(include ${catkin_INCLUDE_DIRS})
add_executable(talker src/talker.cpp)
target_link_libraries(talker ${catkin_LIBRARIES})
add_dependencies(talker testpack_generate_messages_cpp)
add_executable(listener src/listener.cpp)
target_link_libraries(listener ${catkin_LIBRARIES})
add_dependencies(listener testpack_generate_messages_cpp)
add_executable(dir_and_dis_server src/dir_and_dis_server.cpp)
target_link_libraries(dir_and_dis_server ${catkin_LIBRARIES})
add_dependencies(dir_and_dis_server testpack_gencpp)
add_executable(dir_and_dis_client src/dir_and_dis_client.cpp)
target_link_libraries(dir_and_dis_client ${catkin_LIBRARIES})
add_dependencies(dir_and_dis_client testpack_gencpp)
add_executable(teleop_wasd src/teleop_wasd.cpp)
target_link_libraries(teleop_wasd ${catkin_LIBRARIES})