Skip to content

Commit

Permalink
fix: use target link libraries instead of ament target deps
Browse files Browse the repository at this point in the history
Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com>
  • Loading branch information
wep21 authored and Ryanf55 committed Feb 4, 2024
1 parent 4f32682 commit 89ead03
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions grid_map_cv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ find_package(sensor_msgs REQUIRED)

find_package(OpenCV REQUIRED
COMPONENTS
opencv_photo
photo
)

grid_map_package()
Expand Down Expand Up @@ -43,12 +43,13 @@ add_library(${PROJECT_NAME} SHARED
src/InpaintFilter.cpp
)

ament_target_dependencies(${PROJECT_NAME} PUBLIC
${dependencies}
)

target_link_libraries(${PROJECT_NAME} PUBLIC
cv_bridge::cv_bridge
grid_map_core::grid_map_core
opencv_photo
pluginlib::pluginlib
rclcpp::rclcpp
${sensor_msgs_TARGETS}
)

#############
Expand Down

0 comments on commit 89ead03

Please sign in to comment.