Skip to content

Commit

Permalink
link target Franka::Franka to properly setup includes and libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-rauch committed Oct 9, 2023
1 parent 6f89539 commit a3ca5e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion franka_example_controllers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ find_package(rclcpp_lifecycle REQUIRED)
find_package(hardware_interface REQUIRED)
find_package(franka_msgs REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(Franka REQUIRED)
find_package(franka_semantic_components)
find_package(generate_parameter_library)

Expand Down Expand Up @@ -51,7 +52,7 @@ ament_target_dependencies(

generate_parameter_library(franka_example_controllers_parameters src/model_example_controller_parameters.yaml)

target_link_libraries(${PROJECT_NAME} franka_example_controllers_parameters)
target_link_libraries(${PROJECT_NAME} franka_example_controllers_parameters Franka::Franka)

pluginlib_export_plugin_description_file(
controller_interface franka_example_controllers.xml)
Expand Down
3 changes: 2 additions & 1 deletion franka_robot_state_broadcaster/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ set(THIS_PACKAGE_INCLUDE_DEPENDS
control_msgs
controller_interface
controller_manager
Franka
franka_msgs
franka_semantic_components
generate_parameter_library
Expand Down Expand Up @@ -47,7 +48,7 @@ target_include_directories(
generate_parameter_library(franka_robot_state_broadcaster_parameters src/franka_robot_state_broadcaster_parameters.yaml)

target_link_libraries(franka_robot_state_broadcaster
PUBLIC franka_robot_state_broadcaster_parameters)
PUBLIC franka_robot_state_broadcaster_parameters Franka::Franka)
ament_target_dependencies(franka_robot_state_broadcaster PUBLIC
${THIS_PACKAGE_INCLUDE_DEPENDS})

Expand Down

0 comments on commit a3ca5e0

Please sign in to comment.