Skip to content

CMake support for installing libraries as components of the project #1

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

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

fbrand-new
Copy link
Collaborator

This pr introduces changes to CMakeLists so that is now easier to use the project using cmake in other project.

To use it in another project the user can now just write

CMakeLists.txt

find_package(ergocub-cartesian-control COMPONENTS 
             cub-joint-control 
             trajectory-generator
             gb-ergocub-cartesian-service
             utils
)

...

target_link_libraries(
             ...
             ergocub-cartesian-control::cub-joint-control
             ergocub-cartesian-control::trajectory-generator
             ...
)

@fbrand-new fbrand-new merged commit 18cb735 into main Apr 1, 2025
2 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant