-
Notifications
You must be signed in to change notification settings - Fork 54
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
Convert to pure CMake package #3
Comments
Hi @gavanderhoorn , if you are still interested in this I would be happy to migrate the build system to use plain CMake . |
A migration is not something we can do, as we still need to be able to build this project as a ROS package for now. Alternative |
As far as I understand from [1] and [2], as long as the [1] http://wiki.ros.org/bloom/Tutorials/ReleaseThirdParty |
This is only partially true: packages that are pure-cmake will not be directly buildable by In order to avoid having to create an underlay (in which to build |
Thanks, got it. I will try to prepare a mixed |
Perhaps even creating a completely stand-alone, new, A hybrid could also work, but tends to become a bit cluttered in my experience. But if you find a nice way, please submit a PR. |
If anyone is interested in this, a prototype of this is available at traversaro@b2e1559 . I did not open a PR because this need for #23 and #24 merged before, but any comment on the approach (for example if it can considered "too cluttered" or not) is already welcome. Related CMake issue on simplifying the boilerplate code for exporting pure CMake packages: https://gitlab.kitware.com/cmake/cmake/issues/18634 . |
@traversaro nice work. I do feel it's a bit too convoluted, yes. The ROS version of the |
Just two clarify: I was trying to avoid the two separate I would nevertheless wait for #23 and #24 to be merged before opening a PR with the two separate A related topic is if there is any plan for making this library available in ROS2. As far as I can understand (but please correct me if I am wrong) the |
Similar rationale as given in ros-industrial/abb_librws#3 (comment):
|
Update version of a pure CMake build system available at traversaro@a8b79d6 . |
I have finally had some time to work on this issue, and I have created a branch for converting the library into a plain cmake package. I looked at your work @traversaro, but I opted for basing my initial work on a plain cmake package template from the However, I am more than happy to incorporate some of your additions. E.g. use Anyway, I have currently tested to build the package on:
I am going to run some RobotStudio simulations next, as well as looking into using ROS2 on Windows. @gavanderhoorn is it alot of work to updated the travis job for building a plain cmake package? And for building on ROS2 as well? |
Great, thanks a lot.
Basically the main advantage of using
One of the major advantages is that if a user links a target whose name contains I have a few more comments on your branch, if you want I can make them here, otherwise I can wait for a PR, so that we can track the comments on a line-by-line basis. |
Thanks for the quick response and the clarifications! I think it's reasonable to wait for the PR, and I will probably do that tomorrow (I have a wall of meetings ahead of me today 😄) |
I have created the draft PR #63, and I have tested the following situations against RobotStudio simulations:
@traversaro You are more than welcome to add your additional comments when you have time for it. |
The new @ipa-mdl: would you be able to provide some guidance here? |
Just use the
|
Nice, thanks. I'd expected something like that, but wanted to make sure. |
Closing as #63 was merged. Thanks for the support @ipa-mdl and thanks for contributing to the discussion @traversaro. |
Adapt
CMakeLists.txt
so we can accomodate building the library without Catkin / in a non-ROS (build) environment.The text was updated successfully, but these errors were encountered: