Skip to content

Using conan for unit tests #25

Answered by friendlyanon
kammce asked this question in Q&A
Discussion options

You must be logged in to vote

The Conan example from the README shows you how to integrate with Conan. It also shows you how to use a dev dependency, such as doctest. To costumize how Conan installs your dependencies, you can edit the conan.cmake file.

If you follow the example, then you have an experience similar to vcpkg:

cmake --preset=dev-unix # the preset also has the Conan code
cmake --build build/dev-unix
ctest --test-dir build/dev-unix

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kammce
Comment options

@friendlyanon
Comment options

Answer selected by kammce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants