We have a very simple C++ project computing an MD5 checksum from a string using the
Let's have a look to the project files, you can click at any command to execute it:
This is a simple program computing an MD5, you can see that we are including some headers from Poco.
We are going to use CMake to build our example, but any other build system could be used.
The only particular thing in this
CMakeLists.txt file is the inclusion of the
we will see why very soon.
We use this file to declare:
- The [requires] of our project, where we declare we need the version
- The [generators]. Conan supports several generators, with the
cmakeone, we are telling conan to generate a cmake script for us that we can include in the
CMakeLists.txtfile to "link" with our dependencies, in this case the