-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt~
53 lines (38 loc) · 1.08 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
cmake_minimum_required(VERSION 2.8.3)
project(testpack)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
message_generation
actionlib
)
add_service_files(
FILES
DirAndDis.srv
)
add_action_files(
DIRECTORY action
FILES Fibonacci.action
)
generate_messages(
DEPENDENCIES
actionlib_msgs
std_msgs
)
catkin_package(
CATKIN_DEPENDS message_runtime
actionlib_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)