def METHOD_NAME(self):
    self.cpp_info.set_property("cmake_file_name", "exiv2")
    self.cpp_info.set_property("pkg_config_name", "exiv2")
    # component exiv2lib
    self.cpp_info.components["exiv2lib"].set_property("cmake_target_name", "exiv2lib")
    self.cpp_info.components["exiv2lib"].libs = ["exiv2"]
    self.cpp_info.components["exiv2lib"].requires = [ "libiconv::libiconv"]
    if self.options.with_png:
        self.cpp_info.components["exiv2lib"].requires.extend(["libpng::libpng", "zlib::zlib"])
    if self.options.with_curl:
        self.cpp_info.components["exiv2lib"].requires.append("libcurl::libcurl")
    if self.settings.os in ("FreeBSD", "Linux"):
        self.cpp_info.components["exiv2lib"].system_libs.extend(["pthread"])
    if self.settings.os == "Windows":
        self.cpp_info.components["exiv2lib"].system_libs.extend(["psapi", "ws2_32"])
        self.cpp_info.components["exiv2lib"].defines.append("WIN32_LEAN_AND_MEAN")
    # component exiv2-xmp
    if self.options.with_xmp == "bundled":
        self.cpp_info.components["exiv2-xmp"].set_property("cmake_target_name", "exiv2-xmp")
        self.cpp_info.components["exiv2-xmp"].libs = ["exiv2-xmp"]
        self.cpp_info.components["exiv2-xmp"].requires = [ "expat::expat" ]
        self.cpp_info.components["exiv2lib"].requires.append("exiv2-xmp")
    # TODO: to remove in conan v2 once cmake_find_package_* generators removed
    self.cpp_info.components["exiv2lib"].build_modules["cmake_find_package"] = [self._module_file_rel_path]
    self.cpp_info.components["exiv2lib"].build_modules["cmake_find_package_multi"] = [self._module_file_rel_path]
    if self.options.with_xmp == "bundled":
        self.cpp_info.components["exiv2-xmp"].build_modules["cmake_find_package"] = [self._module_file_rel_path]
        self.cpp_info.components["exiv2-xmp"].build_modules["cmake_find_package_multi"] = [self._module_file_rel_path]