Skip to content

Commit

Permalink
Merge branch 'ros2' into tinyxml
Browse files Browse the repository at this point in the history
Resolve merge conflicts from ros2#533
  • Loading branch information
rotu committed Apr 30, 2020
2 parents 14392b0 + 2bb3f2a commit 3c886ec
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 24 deletions.
2 changes: 2 additions & 0 deletions rviz_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ target_include_directories(rviz_common
)

target_link_libraries(rviz_common
PUBLIC
rviz_ogre_vendor::OgreMain
rviz_ogre_vendor::OgreOverlay
${pluginlib_LIBRARIES}
Expand All @@ -258,6 +259,7 @@ target_link_libraries(rviz_common
)

ament_target_dependencies(rviz_common
PUBLIC
geometry_msgs
rclcpp
resource_retriever
Expand Down
65 changes: 41 additions & 24 deletions rviz_default_plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,22 +229,8 @@ add_library(rviz_default_plugins SHARED
target_include_directories(rviz_default_plugins PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
${rviz_rendering_INCLUDE_DIRS}
${rviz_common_INCLUDE_DIRS}
${laser_geometry_INCLUDE_DIRS}
${nav_msgs_INCLUDE_DIRS}
${map_msgs_INCLUDE_DIRS}
${OGRE_INCLUDE_DIRS}
${Qt5Widgets_INCLUDE_DIRS}
${resource_retriever_INCLUDE_DIRS}
${urdf_INCLUDE_DIRS}
${visualization_msgs_INCLUDE_DIRS}
)

target_link_libraries(rviz_default_plugins
laser_geometry::laser_geometry
resource_retriever::resource_retriever
rviz_common::rviz_common
)

# Causes the visibility macros to use dllexport rather than dllimport,
Expand All @@ -264,6 +250,8 @@ ament_target_dependencies(rviz_default_plugins
map_msgs
rclcpp
resource_retriever
rviz_common
rviz_rendering
tf2
tf2_geometry_msgs
tf2_ros
Expand Down Expand Up @@ -331,24 +319,23 @@ if(BUILD_TESTING)
USE_SOURCE_PERMISSIONS)

set(TEST_INCLUDE_DIRS
${map_msgs_INCLUDE_DIRS}
${nav_msgs_INCLUDE_DIRS}
${OGRE_INCLUDE_DIRS}
${Qt5Widgets_INCLUDE_DIRS}
${rclcpp_INCLUDE_DIRS}
${sensor_msgs_INCLUDE_DIRS}
${urdf_INCLUDE_DIRS}
${visualization_msgs_INCLUDE_DIRS}
)
ament_include_directories_order(TEST_INCLUDE_DIRS ${TEST_INCLUDE_DIRS})

set(TEST_LINK_LIBRARIES
rviz_default_plugins
Qt5::Widgets
${rclcpp_LIBRARIES}
${nav_msgs_LIBRARIES}
${map_msgs_LIBRARIES}
${visualization_msgs_LIBRARIES}
)

set(TEST_TARGET_DEPENDENCIES
map_msgs
nav_msgs
rclcpp
sensor_msgs
urdf
visualization_msgs
)

ament_add_gmock(fps_view_controller_test
Expand All @@ -360,6 +347,7 @@ if(BUILD_TESTING)
if(TARGET fps_view_controller_test)
target_include_directories(fps_view_controller_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(fps_view_controller_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(fps_view_controller_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(frame_info_test
Expand All @@ -370,6 +358,7 @@ if(BUILD_TESTING)
if(TARGET frame_info_test)
target_include_directories(frame_info_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(frame_info_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(frame_info_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(grid_cells_display_test
Expand All @@ -379,6 +368,7 @@ if(BUILD_TESTING)
if(TARGET grid_cells_display_test)
target_include_directories(grid_cells_display_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(grid_cells_display_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(grid_cells_display_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(image_display_test
Expand All @@ -387,6 +377,7 @@ if(BUILD_TESTING)
if(TARGET image_display_test)
target_include_directories(image_display_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(image_display_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(image_display_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(marker_test
Expand All @@ -405,6 +396,7 @@ if(BUILD_TESTING)
if(TARGET marker_test)
target_include_directories(marker_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(marker_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(marker_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(marker_common_test
Expand All @@ -416,6 +408,7 @@ if(BUILD_TESTING)
if(TARGET marker_common_test)
target_include_directories(marker_common_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(marker_common_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(marker_common_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(map_display_test
Expand All @@ -426,6 +419,7 @@ if(BUILD_TESTING)
if(TARGET map_display_test)
target_include_directories(map_display_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(map_display_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(map_display_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(measure_tool_test
Expand All @@ -436,6 +430,7 @@ if(BUILD_TESTING)
if(TARGET measure_tool_test)
target_include_directories(measure_tool_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(measure_tool_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(measure_tool_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(odometry_display_test
Expand All @@ -446,6 +441,7 @@ if(BUILD_TESTING)
if(TARGET odometry_display_test)
target_include_directories(odometry_display_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(odometry_display_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(odometry_display_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(odometry_ogre_helper_test
Expand All @@ -454,6 +450,7 @@ if(BUILD_TESTING)
if(TARGET odometry_ogre_helper_test)
target_include_directories(odometry_ogre_helper_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(odometry_ogre_helper_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(odometry_ogre_helper_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(orbit_view_controller_test
Expand All @@ -465,6 +462,7 @@ if(BUILD_TESTING)
if(TARGET orbit_view_controller_test)
target_include_directories(orbit_view_controller_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(orbit_view_controller_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(orbit_view_controller_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(ortho_view_controller_test
Expand All @@ -476,6 +474,7 @@ if(BUILD_TESTING)
if(TARGET ortho_view_controller_test)
target_include_directories(ortho_view_controller_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(ortho_view_controller_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(ortho_view_controller_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(palette_builder_test
Expand All @@ -484,6 +483,7 @@ if(BUILD_TESTING)
if(TARGET palette_builder_test)
target_include_directories(palette_builder_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(palette_builder_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(palette_builder_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(path_display_test
Expand All @@ -494,6 +494,7 @@ if(BUILD_TESTING)
if(TARGET path_display_test)
target_include_directories(path_display_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(path_display_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(path_display_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(point_cloud2_display_test
Expand All @@ -504,6 +505,7 @@ if(BUILD_TESTING)
if(TARGET point_cloud2_display_test)
target_include_directories(point_cloud2_display_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(point_cloud2_display_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(point_cloud2_display_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(point_cloud_common_test
Expand All @@ -516,6 +518,7 @@ if(BUILD_TESTING)
if(TARGET point_cloud_common_test)
target_include_directories(point_cloud_common_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(point_cloud_common_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(point_cloud_common_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(point_cloud_scalar_display_test
Expand All @@ -525,6 +528,7 @@ if(BUILD_TESTING)
if(TARGET point_cloud_scalar_display_test)
target_include_directories(point_cloud_scalar_display_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(point_cloud_scalar_display_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(point_cloud_scalar_display_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(point_cloud_transformers_test
Expand All @@ -540,6 +544,7 @@ if(BUILD_TESTING)
if(TARGET point_cloud_transformers_test)
target_include_directories(point_cloud_transformers_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(point_cloud_transformers_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(point_cloud_transformers_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(point_display_test
Expand All @@ -550,6 +555,7 @@ if(BUILD_TESTING)
if(TARGET point_display_test)
target_include_directories(point_display_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(point_display_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(point_display_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(pose_array_display_test
Expand All @@ -560,6 +566,7 @@ if(BUILD_TESTING)
if(TARGET pose_array_display_test)
target_include_directories(pose_array_display_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(pose_array_display_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(pose_array_display_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(pose_tool_test
Expand All @@ -570,6 +577,7 @@ if(BUILD_TESTING)
if(TARGET pose_tool_test)
target_include_directories(pose_tool_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(pose_tool_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(pose_tool_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(range_display_test
Expand All @@ -580,6 +588,7 @@ if(BUILD_TESTING)
if(TARGET range_display_test)
target_include_directories(range_display_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(range_display_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(range_display_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(robot_test
Expand All @@ -588,6 +597,7 @@ if(BUILD_TESTING)
if(TARGET robot_test)
target_include_directories(robot_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(robot_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(robot_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(ros_image_texture_test
Expand All @@ -596,6 +606,7 @@ if(BUILD_TESTING)
if(TARGET ros_image_texture_test)
target_include_directories(ros_image_texture_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(ros_image_texture_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(ros_image_texture_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(selection_tool_test
Expand All @@ -604,6 +615,7 @@ if(BUILD_TESTING)
if(TARGET selection_tool_test)
target_include_directories(selection_tool_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(selection_tool_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(selection_tool_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(xy_orbit_view_controller_test
Expand All @@ -615,6 +627,7 @@ if(BUILD_TESTING)
if(TARGET xy_orbit_view_controller_test)
target_include_directories(xy_orbit_view_controller_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(xy_orbit_view_controller_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(xy_orbit_view_controller_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(frame_transformer_tf_test
Expand All @@ -623,6 +636,7 @@ if(BUILD_TESTING)
if(TARGET frame_transformer_tf_test)
target_include_directories(frame_transformer_tf_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(frame_transformer_tf_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(frame_transformer_tf_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gmock(transformer_guard_test
Expand All @@ -632,6 +646,7 @@ if(BUILD_TESTING)
if(TARGET transformer_guard_test)
target_include_directories(transformer_guard_test PUBLIC ${TEST_INCLUDE_DIRS})
target_link_libraries(transformer_guard_test ${TEST_LINK_LIBRARIES})
ament_target_dependencies(transformer_guard_test ${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gtest(axes_display_visual_test
Expand Down Expand Up @@ -748,6 +763,8 @@ if(BUILD_TESTING)
${TEST_INCLUDE_DIRS})
target_link_libraries(interactive_marker_namespace_property_test
${TEST_LINK_LIBRARIES})
ament_target_dependencies(interactive_marker_namespace_property_test
${TEST_TARGET_DEPENDENCIES})
endif()

ament_add_gtest(laser_scan_display_visual_test
Expand Down
2 changes: 2 additions & 0 deletions rviz_rendering/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ add_library(rviz_rendering SHARED
)

target_link_libraries(rviz_rendering
PUBLIC
rviz_ogre_vendor::OgreMain
rviz_ogre_vendor::OgreOverlay
Qt5::Widgets
Expand All @@ -124,6 +125,7 @@ target_compile_definitions(rviz_rendering PRIVATE "RVIZ_RENDERING_BUILDING_LIBRA

ament_export_targets(rviz_rendering)
ament_target_dependencies(rviz_rendering
PUBLIC
rviz_assimp_vendor
)
ament_export_dependencies(
Expand Down

0 comments on commit 3c886ec

Please sign in to comment.