def METHOD_NAME(self):
    self.cpp_info.set_property("cmake_find_mode", "both")
    self.cpp_info.set_property("cmake_file_name", "xlsxio")
    self.cpp_info.set_property("cmake_module_file_name", "xlsxio")
    self.cpp_info.set_property("pkg_config_name", "xlsxio")
    ziplib = "minizip::minizip"
    if self.options.with_libzip:
        ziplib = "libzip::libzip"
    elif self.options.get_safe("with_minizip_ng"):
        ziplib = "minizip-ng::minizip-ng"
    xlsxio_macro = "BUILD_XLSXIO_SHARED" if self.options.shared else "BUILD_XLSXIO_STATIC"
    self.cpp_info.components["xlsxio_read"].set_property("cmake_target_name", "xlsxio::xlsxio_read")
    self.cpp_info.components["xlsxio_read"].set_property("cmake_module_target_name", "xlsxio::xlsxio_read")
    self.cpp_info.components["xlsxio_read"].set_property("pkg_config_name", "libxlsxio_read")
    self.cpp_info.components["xlsxio_read"].libs = ["xlsxio_read"]
    self.cpp_info.components["xlsxio_read"].requires = ["expat::expat", ziplib]
    if self.settings.os in ["Linux", "FreeBSD"]:
        self.cpp_info.components["xlsxio_read"].system_libs.append("pthread")
    self.cpp_info.components["xlsxio_read"].defines.append(xlsxio_macro)
    self.cpp_info.components["xlsxio_write"].set_property("cmake_target_name", "xlsxio::xlsxio_write")
    self.cpp_info.components["xlsxio_write"].set_property("cmake_module_target_name", "xlsxio::xlsxio_write")
    self.cpp_info.components["xlsxio_write"].set_property("pkg_config_name", "libxlsxio_write")
    self.cpp_info.components["xlsxio_write"].libs = ["xlsxio_write"]
    self.cpp_info.components["xlsxio_write"].requires = ["expat::expat", ziplib]
    if self.settings.os in ["Linux", "FreeBSD"]:
        self.cpp_info.components["xlsxio_write"].system_libs.append("pthread")
    self.cpp_info.components["xlsxio_write"].defines.append(xlsxio_macro)
    if self.options.with_wide:
        self.cpp_info.components["xlsxio_readw"].set_property("cmake_target_name", "xlsxio::xlsxio_readw")
        self.cpp_info.components["xlsxio_readw"].set_property("cmake_module_target_name", "xlsxio::xlsxio_readw")
        self.cpp_info.components["xlsxio_readw"].set_property("pkg_config_name", "libxlsxio_readw")
        self.cpp_info.components["xlsxio_readw"].libs = ["xlsxio_readw"]
        self.cpp_info.components["xlsxio_readw"].requires = ["expat::expat", ziplib]
        if self.settings.os in ["Linux", "FreeBSD"]:
            self.cpp_info.components["xlsxio_readw"].system_libs.append("pthread")
        self.cpp_info.components["xlsxio_readw"].defines.append(xlsxio_macro)
    # TODO: to remove in conan v2
    self.cpp_info.names["cmake_find_package"] = "xlsxio"
    self.cpp_info.names["cmake_find_package_multi"] = "xlsxio"
    self.cpp_info.components["xlsxio_read"].names["cmake_find_package"] = "xlsxio_read"
    self.cpp_info.components["xlsxio_read"].names["cmake_find_package_multi"] = "xlsxio_read"
    self.cpp_info.components["xlsxio_write"].names["cmake_find_package"] = "xlsxio_write"
    self.cpp_info.components["xlsxio_write"].names["cmake_find_package_multi"] = "xlsxio_write"
    if self.options.with_wide:
        self.cpp_info.components["xlsxio_readw"].names["cmake_find_package"] = "xlsxio_readw"
        self.cpp_info.components["xlsxio_readw"].names["cmake_find_package_multi"] = "xlsxio_readw"