def METHOD_NAME(self):
    self.cpp_info.set_property("cmake_file_name", "Z3")
    self.cpp_info.set_property("cmake_target_name", "z3::libz3")
    # TODO: back to global scope in conan v2 once cmake_find_package_* generators removed
    self.cpp_info.components["libz3"].libs = [
        "libz3" if self.settings.os == "Windows" else "z3"]
    if not self.options.shared:
        if self.settings.os in ["Linux", "FreeBSD"]:
            self.cpp_info.components["libz3"]\
                .system_libs.extend(["pthread", "m"])
    # TODO: to remove in conan v2 once cmake_find_package_* generators removed
    self.cpp_info.filenames["cmake_find_package"] = "Z3"
    self.cpp_info.filenames["cmake_find_package_multi"] = "Z3"
    self.cpp_info.names["cmake_find_package"] = "z3"
    self.cpp_info.names["cmake_find_package_multi"] = "z3"
    self.cpp_info.components["libz3"].names["cmake_find_package"] = "libz3"
    self.cpp_info.components["libz3"].names["cmake_find_package_multi"] = "libz3"
    self.cpp_info.components["libz3"].set_property("cmake_target_name", "z3::libz3")
    self.cpp_info.components["libz3"].requires = ["gmp::gmp"] if self.options.use_gmp else []