-
Notifications
You must be signed in to change notification settings - Fork 7.1k
[libvpx] Add cmake config file #11795
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
[libvpx] Add cmake config file #11795
Conversation
This allows libvpx to be used with find_package(libvpx CONFIG REQUIRED) target_link_libraries(main PRIVATE libvpx::libvpx) Tested on all supported windows triplets.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Unofficial targets created by vcpkg ports are typically prefixed by
|
That is a splendid suggestion @traversaro - I'll go ahead and make that change. |
I've done the change suggested by @traversaro, and I've also added a target guard in case the config gets loaded more than once (similar to what iconv is doing), since that seemed good practice. With those changes, the library can be used as follows: find_package(unofficial-libvpx CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial::libvpx::libvpx) |
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.
Please update the version info. See documentation.
Thanks for the review. I think I've addressed all comments now. Let me know if anything else is needed. |
Thanks for the PR! |
* [libvpx] Add cmake config file This allows libvpx to be used with find_package(libvpx CONFIG REQUIRED) target_link_libraries(main PRIVATE libvpx::libvpx) Tested on all supported windows triplets. * [libvpx] Rename cmake config file to make clear it is unofficial * [libvpx] Add cmake config target guard * [libvpx] Update version
This allows libvpx to be used with
find_package(libvpx CONFIG REQUIRED)
target_link_libraries(main PRIVATE libvpx::libvpx)
Describe the pull request
What does your PR fix? See above.
Which triplets are supported/not supported? Have you updated the CI baseline? Tested on all supported windows triplets. Should work also on linux/darwin provided the same library naming convention is used (vpx base name for release, vpxd base name for debug). If not, it is easy to add alternate names.
Does your PR follow the maintainer guide? Yes.