[requires]
libxml2/2.12.6
NoteSimplest use case consuming this recipe and assuming CMake as your local build tool:
If you are a new Conan user, we recommend reading the how to consume packages tutorial.If you need additional assistance, please ask a question in the Conan Center Index repository.
[requires]
libxml2/2.12.6
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout
class ExampleRecipe(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps", "CMakeToolchain"
def requirements(self):
self.requires("libxml2/2.12.6")
def layout(self):
cmake_layout(self)
Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):
$ conan install conanfile.txt --build=missing
Useful information to take into account to consume this library:
These are the main declared targets:
libxml2 (config), LibXml2 (module)
LibXml2::LibXml2
libxml-2.0.pc
A simple use case using the CMake file name and the global target:
# ...
find_package(libxml2 REQUIRED)
# ...
target_link_libraries(YOUR_TARGET LibXml2::LibXml2)
These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the libxml2
homepage listed above:
#include "libxml/HTMLparser.h"
#include "libxml/HTMLtree.h"
#include "libxml/SAX.h"
#include "libxml/SAX2.h"
#include "libxml/c14n.h"
#include "libxml/catalog.h"
#include "libxml/chvalid.h"
#include "libxml/debugXML.h"
#include "libxml/dict.h"
#include "libxml/encoding.h"
#include "libxml/entities.h"
#include "libxml/globals.h"
#include "libxml/hash.h"
#include "libxml/list.h"
#include "libxml/nanoftp.h"
#include "libxml/nanohttp.h"
#include "libxml/parser.h"
#include "libxml/parserInternals.h"
#include "libxml/pattern.h"
#include "libxml/relaxng.h"
#include "libxml/schemasInternals.h"
#include "libxml/schematron.h"
#include "libxml/threads.h"
#include "libxml/tree.h"
#include "libxml/uri.h"
#include "libxml/valid.h"
#include "libxml/xinclude.h"
#include "libxml/xlink.h"
#include "libxml/xmlIO.h"
#include "libxml/xmlautomata.h"
#include "libxml/xmlerror.h"
#include "libxml/xmlexports.h"
#include "libxml/xmlmemory.h"
#include "libxml/xmlmodule.h"
#include "libxml/xmlreader.h"
#include "libxml/xmlregexp.h"
#include "libxml/xmlsave.h"
#include "libxml/xmlschemas.h"
#include "libxml/xmlschemastypes.h"
#include "libxml/xmlstring.h"
#include "libxml/xmlunicode.h"
#include "libxml/xmlversion.h"
#include "libxml/xmlwriter.h"
#include "libxml/xpath.h"
#include "libxml/xpathInternals.h"
#include "libxml/xpointer.h"
#include "libxml2/libxml/HTMLparser.h"
#include "libxml2/libxml/HTMLtree.h"
#include "libxml2/libxml/SAX.h"
#include "libxml2/libxml/SAX2.h"
#include "libxml2/libxml/c14n.h"
#include "libxml2/libxml/catalog.h"
#include "libxml2/libxml/chvalid.h"
#include "libxml2/libxml/debugXML.h"
#include "libxml2/libxml/dict.h"
#include "libxml2/libxml/encoding.h"
#include "libxml2/libxml/entities.h"
#include "libxml2/libxml/globals.h"
#include "libxml2/libxml/hash.h"
#include "libxml2/libxml/list.h"
#include "libxml2/libxml/nanoftp.h"
#include "libxml2/libxml/nanohttp.h"
#include "libxml2/libxml/parser.h"
#include "libxml2/libxml/parserInternals.h"
#include "libxml2/libxml/pattern.h"
#include "libxml2/libxml/relaxng.h"
#include "libxml2/libxml/schemasInternals.h"
#include "libxml2/libxml/schematron.h"
#include "libxml2/libxml/threads.h"
#include "libxml2/libxml/tree.h"
#include "libxml2/libxml/uri.h"
#include "libxml2/libxml/valid.h"
#include "libxml2/libxml/xinclude.h"
#include "libxml2/libxml/xlink.h"
#include "libxml2/libxml/xmlIO.h"
#include "libxml2/libxml/xmlautomata.h"
#include "libxml2/libxml/xmlerror.h"
#include "libxml2/libxml/xmlexports.h"
#include "libxml2/libxml/xmlmemory.h"
#include "libxml2/libxml/xmlmodule.h"
#include "libxml2/libxml/xmlreader.h"
#include "libxml2/libxml/xmlregexp.h"
#include "libxml2/libxml/xmlsave.h"
#include "libxml2/libxml/xmlschemas.h"
#include "libxml2/libxml/xmlschemastypes.h"
#include "libxml2/libxml/xmlstring.h"
#include "libxml2/libxml/xmlunicode.h"
#include "libxml2/libxml/xmlversion.h"
#include "libxml2/libxml/xmlwriter.h"
#include "libxml2/libxml/xpath.h"
#include "libxml2/libxml/xpathInternals.h"
#include "libxml2/libxml/xpointer.h"
#include "libxml2/win32config.h"
#include "libxml2/wsockcompat.h"
#include "win32config.h"
#include "wsockcompat.h"