File tree 1 file changed +7
-9
lines changed
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ add_library(drake_ros_core
35
35
src/subscription.cc
36
36
)
37
37
38
- ament_target_dependencies (drake_ros_core
39
- Eigen3
40
- drake
41
- geometry_msgs
42
- rclcpp
43
- rosidl_runtime_c
44
- rosidl_typesupport_cpp
38
+ target_link_libraries (drake_ros_core PUBLIC
39
+ Eigen3::Eigen
40
+ drake::drake
41
+ ${geometry_msgs_TARGETS}
42
+ rclcpp::rclcpp
43
+ rosidl_runtime_c::rosidl_runtime_c
44
+ rosidl_typesupport_cpp::rosidl_typesupport_cpp
45
45
)
46
46
47
47
target_include_directories (drake_ros_core
@@ -116,8 +116,6 @@ if(BUILD_TESTING)
116
116
# We do not expose `rmw_isoliation` via CMake.
117
117
_TEST_DISABLE_RMW_ISOLATION
118
118
)
119
- # N.B. We cannot use `ament_target_dependencies` because we cannot access this
120
- # package's exported ament target.
121
119
target_link_libraries (test_pub_sub
122
120
drake::drake
123
121
drake_ros_core
You can’t perform that action at this time.
0 commit comments