def METHOD_NAME(self):
    self.cpp_info.set_property("cmake_find_mode", "both")
    self.cpp_info.set_property("cmake_file_name", "JPEG")
    self.cpp_info.set_property("cmake_target_name", "JPEG::JPEG")
    self.cpp_info.set_property("pkg_config_name", "libjpeg")
    prefix = "lib" if is_msvc(self) or self._is_clang_cl else ""
    self.cpp_info.libs = [f"{prefix}jpeg"]
    self.cpp_info.resdirs = ["res"]
    if not self.options.shared:
        self.cpp_info.defines.append("LIBJPEG_STATIC")
    # TODO: to remove in conan v2 once legacy generators removed
    self.cpp_info.names["cmake_find_package"] = "JPEG"
    self.cpp_info.names["cmake_find_package_multi"] = "JPEG"