def METHOD_NAME(self, components):
    for comp_cmake_lib_name, values in components.items():
        defines = values.get("defines", [])
        system_libs = values.get("system_libs", [])
        requires = values.get("requires", [])
        self.cpp_info.components[comp_cmake_lib_name].set_property("cmake_target_name", comp_cmake_lib_name)
        self.cpp_info.components[comp_cmake_lib_name].names["cmake_find_package"] = comp_cmake_lib_name
        self.cpp_info.components[comp_cmake_lib_name].names["cmake_find_package_multi"] = comp_cmake_lib_name
        self.cpp_info.components[comp_cmake_lib_name].build_modules["cmake_find_package"] = [self._module_file_rel_path]
        self.cpp_info.components[comp_cmake_lib_name].build_modules["cmake_find_package_multi"] = [self._module_file_rel_path]
        self.cpp_info.components[comp_cmake_lib_name].libs = [comp_cmake_lib_name]
        self.cpp_info.components[comp_cmake_lib_name].defines = defines
        self.cpp_info.components[comp_cmake_lib_name].system_libs = system_libs
        self.cpp_info.components[comp_cmake_lib_name].requires = requires