conan-io / conan-io/docs

Conan 2 Docs: Tutorial

Open
#3,202 5 comments 0 reactions 1 assignee Claimed by @memsharded View on GitHub
type: question
Dominant language
C++
Stars
125
Forks
382
Avg merge
22h 39m
Merged PRs (30d)
21

Description

Hi,

Short version:
How to find Conan 2 docs for creating a cache for the dependencies of a project that is just like the project from [the first part of the Conan 2 tutorial](https://docs.conan.io/2/tutorial/consuming_packages.html) (assume there are many third party dependencies associated with the project rather than just zlib).

Long version:
I'm new to Conan. Naively, I just assume that it's natural to use Conan for these two goals (which I believe are named consuming packages and creating packages, respectively):

1. Making it easy to get all of my project's dependencies downloaded, compiled, and wired up to my project (I'm using CMake w/ presets and [the first part of the Conan 2 tutorial](https://docs.conan.io/2/tutorial/consuming_packages.html) helped me set this up already).
2. Using caching to make the dependencies from 1 available in binary form (for anyone to use) for quickly building my project on their local machine.

The reason I'm posting this query is because [the first part of the Conan 2 tutorial](https://docs.conan.io/2/tutorial/consuming_packages.html) is completely analogous to my project (i.e. I have homemade .cpp and .h files making up my project, and dependencies just like zlib that the project depends on). But when I went to [the tutorial on creating packages](https://docs.conan.io/2/tutorial/creating_packages.html) I was thinking one or more third party dependencies would be added (to zlib from the project in the previous section), and then instructions would be given on how to cache all of those third party dependencies: Is there a place I can go to learn how to do just that? And, circling back to my expectations being naïve, am I presenting a normative use case for Conan?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.