Skip to content

Commit 1578b77

Browse files
authored
Use target_link_libraries instead of ament_target_dependencies (#182)
1 parent c17a9b4 commit 1578b77

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ target_link_libraries(${PROJECT_NAME}
6868
cv_bridge::cv_bridge
6969
image_transport::image_transport
7070
rclcpp::rclcpp
71+
rclcpp_components::component
72+
${sensor_msgs_TARGETS}
7173
Boost::boost
7274
Boost::system
7375
${OpenCV_LIBS}
@@ -86,11 +88,6 @@ target_link_libraries(${PROJECT_NAME}_node
8688
${PROJECT_NAME}
8789
)
8890

89-
ament_target_dependencies(${PROJECT_NAME}
90-
rclcpp_components
91-
sensor_msgs
92-
)
93-
9491
rclcpp_components_register_nodes(${PROJECT_NAME} "web_video_server::WebVideoServer")
9592

9693
#############

0 commit comments

Comments
 (0)