-
Notifications
You must be signed in to change notification settings - Fork 57
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
Conan package for json_struct #59
Comments
Yay! Lets do this! |
I added a PR here #60 After this you can submit a pull request on conancenter to have json_struct included. Feel free to open any issues here and ping me if there are any additional requirements by conancenter. |
Hi, I am a bit new to conan. So I have requested access, and I have used your files to create a receipt inside my fork of conan-center-index: https://github.com/jorgen/conan-center-index/tree/json_struct_receipt. But I'm not able to build it with conand create. Do you know if I'm doing something wrong @sheepy9? |
My bad. Should be fixed now in #61 So, since this is a header only library, there are two ways to make the conan package. One way is to just copy the header files, ignore everything else and call it a day. If you check out the test_package, you will see an example of how json_struct will be consumed as a conan package. Basically users would just list json_struct/x.y.z as a dependency and it will be available to cmake in find_package. You might need this when submitting the package to conancenter. It's a minimal example for using the package from conan import ConanFile
from conan.tools.cmake import cmake_layout
class ExampleRecipe(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps", "CMakeToolchain"
def requirements(self):
self.requires("json_struct/1.0.0")
def layout(self):
cmake_layout(self) |
Hi @sheepy9. I have now created a merge request: conan-io/conan-center-index#25335. I really appreciate your help, thank you! |
Hi,
would you be interested in having json_struct be available as a conan package?
If so, I can submit a pull request adding the conan recipe.
Then you could submit an inclusion request to have json_struct available on conancenter, making it super easy for anyone using conan to discover/use your library.
Cheers.
The text was updated successfully, but these errors were encountered: