Skip to content
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 support for pkgconfig #1889

Merged
merged 3 commits into from
Sep 6, 2022
Merged

Add support for pkgconfig #1889

merged 3 commits into from
Sep 6, 2022

Conversation

JonasVautherin
Copy link
Collaborator

@JonasVautherin JonasVautherin commented Aug 24, 2022

This adds support for pkgconfig. Closes #1428.

The way to get the library in cmake using pkgconfig is:

find_package(PkgConfig REQUIRED)
pkg_check_modules(MAVSDK REQUIRED mavsdk)

target_link_libraries(gimbal
    ${MAVSDK_LIBRARIES}
)

target_include_directories(gimbal
    PRIVATE ${MAVSDK_INCLUDE_DIRS}
)

src/mavsdk.pc.in Show resolved Hide resolved
src/mavsdk.pc.in Outdated Show resolved Hide resolved
@julianoes julianoes marked this pull request as ready for review September 6, 2022 07:02
julianoes
julianoes previously approved these changes Sep 6, 2022
Copy link
Collaborator

@julianoes julianoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this, it's good to be merged.

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.

Feature req: pkgconfig for building
2 participants