-
Notifications
You must be signed in to change notification settings - Fork 181
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
Easy setup / auto update via FetchContent #51
Comments
This seems awesome. Should we do a separate repo in the cpp-pm org? Or add it to the gate repo? |
I think: set(HUNTER_PACKAGES package1 package2)
include(FetchContent)
FetchContent_Declare(SetupHunter GIT_REPOSITORY https://github.com/cpp-pm/setup.git)
FetchContent_MakeAvailable(SetupHunter) would be easy to remember 😄 Edit: I think the gate repo should also be OK. A character less to type. |
I'm slightly in favor of |
I didn't know about the I also prefer file(
DOWNLOAD https://raw.githubusercontent.com/cpp-pm/gate/master/cmake/HunterGate.cmake
${CMAKE_BINARY_DIR}/HunterGate.cmake) it could just be: include(cmake/HunterGate.cmake) Which should save some KiB from being transferred every time the user runs CMake on the project. |
Looking through the code, a few points to make:
|
I pushed a MR to the gate project cpp-pm/gate#2 I've used the tagged version to download the tar.gz file, and used the downloaded tar.gz file to compute a SHA1 value and feed the file as file:// URL to |
I've published at https://github.com/cristianadam/SetupHunter an easy way to download / keep up to date Hunter packages.
At https://www.qt.io/blog/qt-5.14-android-multi-abi-and-cmake you can see how Hunter can be used in building multi ABI Qt Android applications.
I would like to contribute this project to Hunter, what do you think?
The text was updated successfully, but these errors were encountered: