Skip to content

Commit c030de8

Browse files
committed
use keyword ament_target_dependencies()
1 parent 5be51b7 commit c030de8

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

CMakeLists.txt

+21-19
Original file line numberDiff line numberDiff line change
@@ -97,29 +97,31 @@ target_link_libraries(simROS2 PRIVATE Boost::boost)
9797
#ament_target_dependencies(simROS2 rclcpp)
9898
ament_target_dependencies(
9999
simROS2
100-
"diagnostic_msgs"
101-
"geometry_msgs"
102-
"lifecycle_msgs"
103-
"map_msgs"
104-
"nav_msgs"
105-
"pendulum_msgs"
106-
"rosgraph_msgs"
107-
"sensor_msgs"
108-
"shape_msgs"
109-
"std_msgs"
110-
"stereo_msgs"
111-
"tf2_geometry_msgs"
112-
"tf2_msgs"
113-
"trajectory_msgs"
114-
"unique_identifier_msgs"
115-
"visualization_msgs"
116-
"std_srvs"
117-
"example_interfaces"
100+
PUBLIC
101+
diagnostic_msgs
102+
geometry_msgs
103+
lifecycle_msgs
104+
map_msgs
105+
nav_msgs
106+
pendulum_msgs
107+
rosgraph_msgs
108+
sensor_msgs
109+
shape_msgs
110+
std_msgs
111+
stereo_msgs
112+
tf2_geometry_msgs
113+
tf2_msgs
114+
trajectory_msgs
115+
unique_identifier_msgs
116+
visualization_msgs
117+
std_srvs
118+
example_interfaces
118119
)
119120
if(image_transport_FOUND)
120121
ament_target_dependencies(
121122
simROS2
122-
"image_transport"
123+
PUBLIC
124+
image_transport
123125
)
124126
endif()
125127

0 commit comments

Comments
 (0)