Conan package for TinyXML2 library made by Lee Thomason.
Recipe is hosted on my personal bintray and it's included also in conan center. Since conan-center is configured by default in conan installation you should be able to get the library just by installing it:
$ conan install tinyxml2/7.0.1@nicolastagliani/stable
If you handle multiple dependencies in your project is better to add a conanfile.txt
[requires]
tinyxml2/7.0.1@nicolastagliani/stable
[options]
tinyxml2:shared=True # False
[generators]
cmake
Complete the installation of requirements for your project running:
conan install .
Project setup installs the library (and all his dependencies) and generates the files conanbuildinfo.cmake with all the paths and variables that you need to link with your dependencies.