conan2-intro
Sample Project for Presenting
- Step 1: Creating a basic "Hello World" app
- Step 2: Adding application logic and dependencies
- Step 3: Debugging and Testing our app
- Step 4: Creating a package
Instructions
conan install
cmake --preset conan-release
cmake --build --preset conan-release
Debugging our Code
conan install . -s "&:build_type=Debug"
cmake --preset conan-debug
cmake --build --preset conan-debug
./build/Debug/app
Running the Tests
conan install
cmake --preset conan-release
ctest --preset conan-release --output-junit results.xml
Locking down our dependency graph
Note: This a one time operation that a developer only needs to run once but could be useful to update packages.
conan lock create
conan install
Updating the dependencies
conan lock create --lockfile="" --update
conan install
Building the Package
conan create