Skip to content

Commit

Permalink
Migrate ignition plugins to ament_target_dependencies (#262)
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
  • Loading branch information
luca-della-vedova committed Nov 5, 2020
1 parent 9ac0320 commit 1509425
Showing 1 changed file with 31 additions and 35 deletions.
66 changes: 31 additions & 35 deletions building_sim_plugins/building_ignition_plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ include(GNUInstallDirs)

add_library(slotcar SHARED ${PROJECT_SOURCE_DIR}/src/slotcar.cpp)

target_link_libraries(slotcar
ament_target_dependencies(slotcar
PUBLIC
ignition-gazebo${IGN_GAZEBO_VER}::ignition-gazebo${IGN_GAZEBO_VER}
ignition-plugin${IGN_PLUGIN_VER}::ignition-plugin${IGN_PLUGIN_VER}
${building_sim_common_LIBRARIES}
${rmf_fleet_msgs_LIBRARIES}
${rclcpp_LIBRARIES}
${geometry_msgs_LIBRARIES}
${tf2_ros_LIBRARIES}
ignition-gazebo${IGN_GAZEBO_VER}
ignition-plugin${IGN_PLUGIN_VER}
building_sim_common
rmf_fleet_msgs
rclcpp
geometry_msgs
tf2_ros
)

target_include_directories(slotcar
Expand Down Expand Up @@ -106,16 +106,14 @@ target_include_directories(door
${rmf_door_msgs_INCLUDE_DIRS}
)

target_link_libraries(door
ament_target_dependencies(door
PUBLIC
${rclcpp_LIBRARIES}
ignition-gazebo${IGN_GAZEBO_VER}::ignition-gazebo${IGN_GAZEBO_VER}
ignition-plugin${IGN_PLUGIN_VER}::ignition-plugin${IGN_PLUGIN_VER}
${building_sim_common_LIBRARIES}
${rmf_door_msgs_LIBRARIES}
${rmf_fleet_msgs_LIBRARIES}
#${geometry_msgs_LIBRARIES}
#${tf2_ros_LIBRARIES}
rclcpp
ignition-gazebo${IGN_GAZEBO_VER}
ignition-plugin${IGN_PLUGIN_VER}
building_sim_common
rmf_door_msgs
rmf_fleet_msgs
)

###############################
Expand All @@ -132,17 +130,15 @@ target_include_directories(lift
${rmf_lift_msgs_INCLUDE_DIRS}
)

target_link_libraries(lift
ament_target_dependencies(lift
PUBLIC
${rclcpp_LIBRARIES}
ignition-gazebo${IGN_GAZEBO_VER}::ignition-gazebo${IGN_GAZEBO_VER}
ignition-plugin${IGN_PLUGIN_VER}::ignition-plugin${IGN_PLUGIN_VER}
${building_sim_common_LIBRARIES}
${rmf_door_msgs_LIBRARIES}
${rmf_lift_msgs_LIBRARIES}
${rmf_fleet_msgs_LIBRARIES}
#${geometry_msgs_LIBRARIES}
#${tf2_ros_LIBRARIES}
rclcpp
ignition-gazebo${IGN_GAZEBO_VER}
ignition-plugin${IGN_PLUGIN_VER}
building_sim_common
rmf_door_msgs
rmf_lift_msgs
rmf_fleet_msgs
)

###############################
Expand Down Expand Up @@ -192,14 +188,14 @@ add_library(toggle_charging SHARED ${headers_MOC}
${resources_RCC}
)

target_link_libraries(toggle_charging
ignition-gui${IGN_GUI_VER}::ignition-gui${IGN_GUI_VER}
ignition-msgs${IGN_MSGS_VER}::ignition-msgs${IGN_MSGS_VER}
ignition-transport${IGN_TRANSPORT_VER}::ignition-transport${IGN_TRANSPORT_VER}
${Qt5Core_LIBRARIES}
${Qt5Qml_LIBRARIES}
${Qt5Quick_LIBRARIES}
${rclcpp_LIBRARIES}
ament_target_dependencies(toggle_charging
ignition-gui${IGN_GUI_VER}
ignition-msgs${IGN_MSGS_VER}
ignition-transport${IGN_TRANSPORT_VER}
Qt5Core
Qt5Qml
Qt5Quick
rclcpp
)

target_include_directories(toggle_charging
Expand Down

0 comments on commit 1509425

Please sign in to comment.