TinyXML2

hunter_add_package(tinyxml2)
find_package(tinyxml2 CONFIG REQUIRED)

add_executable(boo boo.cpp)
target_link_libraries(boo PUBLIC tinyxml2::tinyxml2)

Old version

When using tinyxml2 versions before 8.1.0, tinyxml2 target is not name-spaced

hunter_add_package(tinyxml2)
find_package(tinyxml2 CONFIG REQUIRED)
target_link_libraries(... tinyxml2)