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

Adds cmake package configuration and version file to enable find_package(libpion) #75

Merged
merged 1 commit into from Feb 6, 2015

Conversation

daminetreg
Copy link
Contributor

Hi dear splunk developers team,

I was just about to use your library in my project and noticed that your cmake build didn't add package-config, but personally I wished to be able to find_package pion, so I simply added the necessary steps for this.

This allows users of the library to include it easily then :
find_package(libpion 5.0.6 REQUIRED)
link_directories(${LIBPION_LIBRARY_DIRS})
include_directories(${LIBPION_INCLUDE_DIRS})
target_link_libraries(yourTarget ${LIBPION_LIBRARIES})

It also has the advantages that if different version are on the system, only the right one is taken.

Thanks for this http library 😃
Cheers,

…age(libpion).

This allows users of the library to include it easily :
       find_package(libpion @LIBPION_LIBRARY_VERSION@ REQUIRED)
       link_directories(${LIBPION_LIBRARY_DIRS})
       include_directories(${LIBPION_INCLUDE_DIRS})


       target_link_libraries(yourTarget ${LIBPION_LIBRARIES})
@daminetreg
Copy link
Contributor Author

Is there any interest in this ?

@snikulov
Copy link
Contributor

@daminetreg Looks good to me.
But unfortunately I'm not maintainer. Perhaps @vshcherbakov or @mikedickey can help us merge this into mainline.

@vshcherbakov
Copy link
Contributor

Sorry for long delay in merging this, guys. Unfortunately we are not using cmake (yet?) so I have no easy way to verify this pull request.

vshcherbakov added a commit that referenced this pull request Feb 6, 2015
Adds cmake package configuration and version file to enable find_package(libpion)
@vshcherbakov vshcherbakov merged commit 5d99f90 into splunk:develop Feb 6, 2015
@snikulov
Copy link
Contributor

snikulov commented Feb 6, 2015

@vshcherbakov it is never too late to start using cmake ;-)

@daminetreg
Copy link
Contributor Author

Thank you very much 👍 It's easy to reuse it this way.

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.

None yet

3 participants