-
Notifications
You must be signed in to change notification settings - Fork 196
Bump 2.2.5 #400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump 2.2.5 #400
Changes from all commits
b0f1c56
abb459d
4e756fb
220f2ce
ae60eb4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,7 +23,6 @@ endif() | |
| ################################################################################ | ||
| find_package(ament_cmake REQUIRED) | ||
| find_package(dynamixel_sdk REQUIRED) | ||
| find_package(rclcpp REQUIRED) | ||
|
|
||
| ################################################################################ | ||
| # Declare ROS messages, services and actions | ||
|
|
@@ -32,14 +31,6 @@ find_package(rclcpp REQUIRED) | |
| ################################################################################ | ||
| # Build | ||
| ################################################################################ | ||
| include_directories( | ||
| include | ||
| ) | ||
|
|
||
| set(dependencies_lib | ||
| "dynamixel_sdk" | ||
| "rclcpp" | ||
| ) | ||
|
|
||
| set(LIB_NAME "dynamixel_workbench_toolbox") | ||
|
|
||
|
|
@@ -49,19 +40,28 @@ add_library(${LIB_NAME} SHARED | |
| src/${PROJECT_NAME}/dynamixel_tool.cpp | ||
| src/${PROJECT_NAME}/dynamixel_workbench.cpp | ||
| ) | ||
| ament_target_dependencies(${LIB_NAME} ${dependencies_lib}) | ||
| target_include_directories(${LIB_NAME} PUBLIC | ||
| $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | ||
| $<INSTALL_INTERFACE:include/${PROJECT_NAME}> | ||
| ${dynamixel_sdk_INCLUDE_DIRS} | ||
| ) | ||
|
|
||
| target_link_libraries(${LIB_NAME} PUBLIC | ||
| ${dynamixel_sdk_LIBRARIES} | ||
| ) | ||
|
|
||
| ################################################################################ | ||
| # Install | ||
| ################################################################################ | ||
| install(TARGETS ${LIB_NAME} | ||
| EXPORT export_${PROJECT_NAME} | ||
| ARCHIVE DESTINATION lib | ||
| LIBRARY DESTINATION lib | ||
| RUNTIME DESTINATION bin/${PROJECT_NAME} | ||
| ) | ||
|
|
||
| install(DIRECTORY include/ | ||
| DESTINATION include/ | ||
| DESTINATION include/${PROJECT_NAME} | ||
| ) | ||
|
Comment on lines
63
to
65
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This installation rule for header files, combined with the Given the source structure where headers are located at
To achieve this, the headers from the source Could you please adjust this installation rule? Also, ensure the |
||
|
|
||
| ################################################################################ | ||
|
|
@@ -71,8 +71,6 @@ install(DIRECTORY include/ | |
| ################################################################################ | ||
| # Macro for ament package | ||
| ################################################################################ | ||
| ament_export_include_directories(include) | ||
| ament_export_dependencies(dynamixel_sdk) | ||
| ament_export_dependencies(rclcpp) | ||
| ament_export_libraries(${LIB_NAME}) | ||
| ament_export_targets(export_${PROJECT_NAME} HAS_LIBRARY_TARGET) | ||
| ament_package() | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To align with the standard ROS include pattern (
#include <package_name/header.h>) and ensure correct header discovery by downstream packages, thisINSTALL_INTERFACEshould beinclude.This change is related to the header installation method (see comment on lines 63-65). When headers are installed to
PREFIX/include/package_name/header.h, downstream packages should addPREFIX/includeto their include search paths. ThisINSTALL_INTERFACEdirective configures that for consumers of this target.