def METHOD_NAME(self):
    self.cpp_info.set_property("cmake_file_name", "nng")
    self.cpp_info.set_property("cmake_target_name", "nng::nng")
    self.cpp_info.libs = ["nng"]
    if self.settings.os == "Windows" and not self.options.shared:
        self.cpp_info.system_libs.extend(["mswsock", "ws2_32"])
    elif self.settings.os in ["Linux", "FreeBSD"]:
        self.cpp_info.system_libs.extend(["pthread"])
    if self.options.shared:
        self.cpp_info.defines.append("NNG_SHARED_LIB")
    else:
        self.cpp_info.defines.append("NNG_STATIC_LIB")
    # TODO: to remove in conan v2 once cmake_find_package_* generators removed
    self.cpp_info.names["cmake_find_package"] = "nng"
    self.cpp_info.names["cmake_find_package_multi"] = "nng"