• Introduction
  • What’s new in Conan 2.0
  • Install
  • Tutorial
    • Consuming packages
    • Creating packages
    • Working with Conan repositories
    • Developing packages locally
    • Versioning
    • Other important Conan features
  • Integrations
  • Examples
  • Reference
  • Knowledge
  • Changelog

Sign up for release updates

conan
  • Docs »
  • Tutorial
  • Edit on GitHub

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
    • Setting up a Conan remote
    • Uploading Packages
    • Contributing to Conan Center
  • Developing packages locally
    • Package Development Flow
    • Packages in editable mode
    • Understanding the Conan Package layout
  • Versioning
    • Versions
    • Version ranges
    • Revisions
    • Lockfiles
    • Dependencies conflicts
  • Other important Conan features
    • python_requires
Next Previous

© Copyright 2016-2023, JFrog. Last updated on Mar 30, 2023. Cookies Settings

Version: 2.0
Versions
2.0
2

1
1.59
1.58
1.57
1.56
1.55
1.54
1.53
1.52
1.51
1.50
1.49
1.48
1.47
1.46
1.45
1.44
1.43
1.42
1.41
1.40
1.39
1.38
1.37
1.36
1.35
1.34
1.33
1.32
1.31
1.30
1.29
1.28
1.27
1.26
1.25
1.24
1.23
1.22
1.21
1.20
1.19
1.18
1.17
1.16
1.15
1.14
1.13
1.12
1.11
1.10
1.9
1.8
1.7
1.6
1.5
1.4
1.3
Downloads
PDF