Skip to content

Recipes for Conan C++ packages, libraries, and binaries

Notifications You must be signed in to change notification settings

jimmyorourke/conan-packages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

conan-packages

Recipes for Conan packages.

Conan is a package manager for C and C++. Packages can be third party libraries (as source or pre-built binaries), dev tools, etc.

Update 2020: The Conan team has aggregated a large number of the recipes from community packages and those from Bincrafters and Bintray to https://github.com/conan-io/conan-center-index.

Building and packaging

To locally build a recipe, from within the recipe directory

$ conan create . <remote>/<channel>

where remote and channel can be whatever you choose, eg. demo/testing. These names become more important when uploading prebuilt binary packages to a Conan server.

This command will execute the steps in the rescipe's conanfile.py, and publish the package to the local system cache ( ~/.conan/data/).

Using packages in C and C++ projects

In your build directory

$ conan install <package name>/<version>@<remote>/<channel>

where the package details should match those of the packages previously built.

Alternatively, or if you handle multiple dependencies in your project you can use a conanfile.txt in your project. For example:

[requires]
OpenCV/3.2.0@conan/stable

[generators]
cmake

Then to install your dependencies:

$ mkdir build && cd build && conan install ..

It is recommended to run conan install from a build directory because conan will generate a conanbuildinfo file specific to your build configuration and required packages. The conanbuildinfo file is what your build system will use to access your conan packages, through exported paths, targets, variables, etc.

About

Recipes for Conan C++ packages, libraries, and binaries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published