-
Notifications
You must be signed in to change notification settings - Fork 111
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
Add sensor_msgs_library target and install headers to include/${PROJECT_NAME} #178
Conversation
…CT_NAME} Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
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.
Looks good to me.
This makes micro-ROS type support fails because we are not using Is there any possibility of making this modification optional? Or maybe selecting I found that just replacing rosidl_get_typesupport_target(cpp_target "${PROJECT_NAME}" "rosidl_generator_cpp") with rosidl_get_typesupport_target(cpp_target "${PROJECT_NAME}" "rosidl_generator_c") it works as expected. Should we assume that cpp generator and/or cpp typesupport are mandatory? Any idea? |
Another question @sloretz @clalancette , why this has been done only in this |
Yes, I think so. The headers in the
That probably worked because downstream packages using those are depending on |
As far as I understood
I do not understand how I can do In any case, I have proposed an approach here: #183 |
Is there a reason to not also add an alias library? It's supported in the version of cmake used here. You said in the PR you added the alias, but I cannot see where it was created in the diff. |
This adds a modern CMake target
sensor_msgs_library
usable downstream as sensor_msgs::sensor_msgs_library and installs headers to a unique include directory as part of ros2/ros2#1150It might depend on ros2/rosidl#662, I'm not sure.