Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.48 KB

Conan.md

File metadata and controls

46 lines (32 loc) · 1.48 KB

Conan

You can use conan to integrate the min-api.

Using Conan

There is cmake based project in examples/min.conan that uses a version of min that is packaged with conan.

This example uses a repository that you may or may not have access to. If you don't, you can build the conan package locally, as indicated below, before building the example.

Creating and Uploading packages

Make sure you have your submodules updated.

git submodule update --init --recursive

To create a new version of the conan package based on the current checkout, you'll want to run the commands below, but replace the tags with something reasonable.

If you tag the git branch you'll make a version of the package with that name, which will make using it easier later.

git tag v0.6.9
conan create . xnor/testing

To upload, you'll have to have a repository, here I've set up cycling-public as a remote. For example, if the version is v0.6.9 and I tagged with xnor/testing.

conan upload min-api/v0.6.9@xnor/testing --all -r cycling-public

Once you've uploaded the package you can use it as detailed below, and if your repository is public, you can easily share your project with others without having to include the min-api project inside your project.

You can also package min-api locally and build without uploading, but others will have to do that themselves as well if they want to build your project.