Tutorial¶
The purpose of this section is to guide you through the most important Conan features with practical examples. From using libraries already packaged by Conan, to how to package your libraries and store them in a remote server alongside all the precompiled binaries.
- Consuming packages
- Build a simple CMake project using Conan
- Using build tools as Conan packages
- Building for multiple configurations: Release, Debug, Static and Shared
- Understanding the flexibility of using conanfile.py vs conanfile.txt
- How to cross-compile your applications using Conan: host and build contexts
- Introduction to versioning
- Creating packages
- Create your first Conan package
- Handle sources in packages
- Add dependencies to packages
- Preparing the build
- Configure settings and options in recipes
- Build packages: the build() method
- Package files: the package() method
- Define information for consumers: the package_info() method
- Testing Conan packages
- Other types of packages
- Working with Conan repositories
- Developing packages locally
- Versioning
- Other important Conan features