def METHOD_NAME(self):
    self.cpp_info.set_property("cmake_file_name", "cJSON")
    self.cpp_info.components["_cjson"].set_property("cmake_target_name", "cjson")
    self.cpp_info.components["_cjson"].set_property("pkg_config_name", "libcjson")
    self.cpp_info.components["_cjson"].libs = ["cjson"]
    if self.settings.os in ["Linux", "FreeBSD"]:
        self.cpp_info.components["_cjson"].system_libs = ["m"]
    if self.options.utils:
        self.cpp_info.components["cjson_utils"].set_property("cmake_target_name", "cjson_utils")
        self.cpp_info.components["cjson_utils"].set_property("pkg_config_name", "libcjson_utils")
        self.cpp_info.components["cjson_utils"].libs = ["cjson_utils"]
        self.cpp_info.components["cjson_utils"].requires = ["_cjson"]
    # TODO: to remove in conan v2 once cmake_find_package* & pkg_config generators removed
    self.cpp_info.names["cmake_find_package"] = "cJSON"
    self.cpp_info.names["cmake_find_package_multi"] = "cJSON"
    self.cpp_info.components["_cjson"].names["cmake_find_package"] = "cjson"
    self.cpp_info.components["_cjson"].names["cmake_find_package_multi"] = "cjson"
    self.cpp_info.components["_cjson"].build_modules["cmake_find_package"] = [self._module_file_rel_path]
    self.cpp_info.components["_cjson"].build_modules["cmake_find_package_multi"] = [self._module_file_rel_path]
    self.cpp_info.components["_cjson"].names["pkg_config"] = "libcjson"
    if self.options.utils:
        self.cpp_info.components["cjson_utils"].names["cmake_find_package"] = "cjson_utils"
        self.cpp_info.components["cjson_utils"].names["cmake_find_package_multi"] = "cjson_utils"
        self.cpp_info.components["cjson_utils"].build_modules["cmake_find_package"] = [self._module_file_rel_path]
        self.cpp_info.components["cjson_utils"].build_modules["cmake_find_package_multi"] = [self._module_file_rel_path]
        self.cpp_info.components["cjson_utils"].names["pkg_config"] = "libcjson_utils"