Skip to content

Commit

Permalink
Updated export of cmake variables.
Browse files Browse the repository at this point in the history
(cherry picked from commit dfbd6ba)
  • Loading branch information
StefanFabian committed Nov 19, 2024
1 parent f8b2ddd commit a954372
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ros_babel_fish/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ target_include_directories(action_client PRIVATE
## Install ##
#############

ament_export_targets(export_${PROJECT_NAME} HAS_LIBRARY_TARGET)
ament_export_dependencies(rclcpp rclcpp_action rosidl_runtime_cpp rosidl_typesupport_cpp rosidl_typesupport_introspection_cpp)

## Mark libraries for installation
install(
TARGETS ${PROJECT_NAME}
Expand All @@ -122,6 +119,14 @@ install(
install(DIRECTORY include/ DESTINATION include/)


# Export old style CMake variables
ament_export_include_directories(include)
ament_export_libraries(${PROJECT_NAME})

# Export modern CMake targets
ament_export_targets(export_${PROJECT_NAME} HAS_LIBRARY_TARGET)
ament_export_dependencies(rclcpp rclcpp_action rosidl_runtime_cpp rosidl_typesupport_cpp rosidl_typesupport_introspection_cpp)

#############
## Testing ##
#############
Expand Down

0 comments on commit a954372

Please sign in to comment.