def METHOD_NAME(self):
    target = "checkShared" if self.options.shared else "check"
    self.cpp_info.set_property("cmake_file_name", "check")
    self.cpp_info.set_property("cmake_target_name", "Check::{}".format(target))
    self.cpp_info.set_property("pkg_config_name", "check")
    # TODO: back to global scope in conan v2 once cmake_find_package_* generators removed
    libsuffix = "Dynamic" if self._is_msvc and self.options.shared else ""
    self.cpp_info.components["liblibcheck"].libs = ["check{}".format(libsuffix)]
    if self.options.with_subunit:
        self.cpp_info.components["liblibcheck"].requires.append("subunit::libsubunit")
    if not self.options.shared:
        if self.settings.os in ["Linux", "FreeBSD"]:
            self.cpp_info.components["liblibcheck"].system_libs = ["m", "pthread", "rt"]
    bin_path = os.path.join(self.package_folder, "bin")
    self.output.info("Appending PATH environment variable: {}".format(bin_path))
    self.env_info.PATH.append(bin_path)
    # TODO: to remove in conan v2 once cmake_find_package_* generators removed
    self.cpp_info.filenames["cmake_find_package"] = "check"
    self.cpp_info.filenames["cmake_find_package_multi"] = "check"
    self.cpp_info.names["cmake_find_package"] = "Check"
    self.cpp_info.names["cmake_find_package_multi"] = "Check"
    self.cpp_info.names["pkg_config"] = "check"
    self.cpp_info.components["liblibcheck"].names["cmake_find_package"] = target
    self.cpp_info.components["liblibcheck"].names["cmake_find_package_multi"] = target
    self.cpp_info.components["liblibcheck"].set_property("cmake_target_name", "Check::{}".format(target))
    self.cpp_info.components["liblibcheck"].set_property("pkg_config_name", "check")