-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
74 lines (63 loc) · 1.76 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
68
69
70
71
72
73
74
cmake_minimum_required(VERSION 3.8)
project(client_within_action_cpp)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic -Wunused)
endif()
# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rclcpp_action REQUIRED)
find_package(action_tutorials_interfaces REQUIRED)
find_package(example_interfaces REQUIRED)
find_package(std_msgs REQUIRED)
add_executable(client_within_action_1 src/client_within_action_1.cpp)
ament_target_dependencies(client_within_action_1
rclcpp
rclcpp_action
action_tutorials_interfaces
std_msgs
)
add_executable(client_within_action_2 src/client_within_action_2.cpp)
ament_target_dependencies(client_within_action_2
rclcpp
rclcpp_action
action_tutorials_interfaces
std_msgs
)
add_executable(client_within_action_3 src/client_within_action_3.cpp)
ament_target_dependencies(client_within_action_3
rclcpp
rclcpp_action
action_tutorials_interfaces
std_msgs
)
add_executable(client_within_action_4 src/client_within_action_4.cpp)
ament_target_dependencies(client_within_action_4
rclcpp
rclcpp_action
action_tutorials_interfaces
std_msgs
)
add_executable(client_within_action_5 src/client_within_action_5.cpp)
ament_target_dependencies(client_within_action_5
rclcpp
rclcpp_action
action_tutorials_interfaces
std_msgs
)
add_executable(client_within_action_6 src/client_within_action_6.cpp)
ament_target_dependencies(client_within_action_6
rclcpp
rclcpp_action
action_tutorials_interfaces
std_msgs
)
install(TARGETS
client_within_action_1
client_within_action_2
client_within_action_3
client_within_action_4
client_within_action_5
client_within_action_6
DESTINATION lib/${PROJECT_NAME})
ament_package()