Our project relies on the C++ REST SDK. To tell this to Conan, we need to create a file called conanfile.txt. In our case, it will contain the following:
[requires]
cpprestsdk/2.10.18
[generators]
CMakeDeps
You can specify as many dependencies as you want here. Each of them can have either a fixed version, a range of the fixed versions, or a tag such as latest. After the @ sign, you can find the company that owns the package and the channel that allows you to select a specific variant of the package (usually stable and testing).
The generators section is where you specify what build systems you want to use. For CMake projects, you should use CMakeDeps. You can also generate lots of others, including ones for generating compiler arguments, CMake toolchain files, Python virtual environments, and many more.
In our case, we don't specify any additional options, but you could easily add this section and configure variables for your packages and for...