Conan package for lib libpng library: http://www.libpng.org/pub/png/libpng.html
The packages generated with this conanfile can be found in conan.io.
Download conan client from Conan.io and run:
$ python build.py
$ conan upload libpng/1.6.32@lasote/stable --all
$ conan install libpng/1.6.32@lasote/stable
If you handle multiple dependencies in your project is better to add a conanfile.txt
[requires]
libpng/1.6.32@lasote/stable
[options]
libpng:shared=true # false
[generators]
txt
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.txt and conanbuildinfo.cmake with all the paths and variables that you need to link with your dependencies.