-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
163 lines (134 loc) · 3.69 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
cmake_minimum_required(VERSION 3.5)
project(latency_analysis)
# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
endif()
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
# find dependencies
find_package(ament_cmake REQUIRED)
# uncomment the following section in order to fill in
# further dependencies manually.
# find_package(builtin_interfaces REQUIRED)
find_package(rclcpp REQUIRED)
find_package(message_filters REQUIRED)
find_package(sensor_msgs REQUIRED)
set(dependencies
rclcpp
message_filters
sensor_msgs
)
add_executable(pub1_exe src/pub1_exe.cpp)
target_include_directories(pub1_exe PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
ament_target_dependencies(pub1_exe
"rclcpp"
"message_filters"
"sensor_msgs"
)
add_executable(pub2_exe src/pub2_exe.cpp)
target_include_directories(pub2_exe PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
ament_target_dependencies(pub2_exe
"rclcpp"
"message_filters"
"sensor_msgs"
)
add_executable(pub3_exe src/pub3_exe.cpp)
target_include_directories(pub3_exe PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
ament_target_dependencies(pub3_exe
"rclcpp"
"message_filters"
"sensor_msgs"
)
add_executable(pub4_exe src/pub4_exe.cpp)
target_include_directories(pub4_exe PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
ament_target_dependencies(pub4_exe
"rclcpp"
"message_filters"
"sensor_msgs"
)
add_executable(pub5_exe src/pub5_exe.cpp)
target_include_directories(pub5_exe PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
ament_target_dependencies(pub5_exe
"rclcpp"
"message_filters"
"sensor_msgs"
)
add_executable(pub6_exe src/pub6_exe.cpp)
target_include_directories(pub6_exe PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
ament_target_dependencies(pub6_exe
"rclcpp"
"message_filters"
"sensor_msgs"
)
add_executable(pub7_exe src/pub7_exe.cpp)
target_include_directories(pub7_exe PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
ament_target_dependencies(pub7_exe
"rclcpp"
"message_filters"
"sensor_msgs"
)
add_executable(pub8_exe src/pub8_exe.cpp)
target_include_directories(pub8_exe PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
ament_target_dependencies(pub8_exe
"rclcpp"
"message_filters"
"sensor_msgs"
)
add_executable(pub9_exe src/pub9_exe.cpp)
target_include_directories(pub9_exe PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
ament_target_dependencies(pub9_exe
"rclcpp"
"message_filters"
"sensor_msgs"
)
add_executable(sub_exe src/sub_exe.cpp)
target_include_directories(sub_exe PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
ament_target_dependencies(sub_exe
"rclcpp"
"message_filters"
"sensor_msgs"
)
install(TARGETS
pub1_exe
pub2_exe
pub3_exe
pub4_exe
pub5_exe
pub6_exe
pub7_exe
pub8_exe
pub9_exe
sub_exe
DESTINATION lib/${PROJECT_NAME})
# Install files.
install(DIRECTORY
config
DESTINATION share/${PROJECT_NAME}/
)
ament_package()