def METHOD_NAME(self):
    self.cpp_info.set_property("cmake_file_name", "jsoncpp")
    self.cpp_info.set_property("cmake_target_name", "JsonCpp::JsonCpp")
    self.cpp_info.set_property(
        "cmake_target_aliases",
        ["jsoncpp_lib"] if self.options.shared else ["jsoncpp_lib", "jsoncpp_static", "jsoncpp_lib_static"],
    )
    self.cpp_info.set_property("pkg_config_name", "jsoncpp")
    self.cpp_info.libs = ["jsoncpp"]
    if self.settings.os == "Windows" and self.options.shared:
        self.cpp_info.defines.append("JSON_DLL")
    if self.settings.os in ["Linux", "FreeBSD"]:
        self.cpp_info.system_libs.append("m")
    # TODO: to remove in conan v2 once legacy generators removed
    self.cpp_info.build_modules["cmake_find_package"] = [self._module_file_rel_path]
    self.cpp_info.build_modules["cmake_find_package_multi"] = [self._module_file_rel_path]