def METHOD_NAME(self):
    self.cpp_info.libs = ["qwt"]
    self.cpp_info.requires = ["qt::qtCore", "qt::qtConcurrent", "qt::qtPrintSupport"]
    if self.settings.os == "Windows" and self.options.shared:
        self.cpp_info.defines.append("QWT_DLL")
    if not self.options.plot:
        self.cpp_info.defines.append("NO_QWT_PLOT")
    if not self.options.polar:
        self.cpp_info.defines.append("NO_QWT_POLAR")
    if self.options.widgets:
        self.cpp_info.requires.append("qt::qtWidgets")
    else:
        self.cpp_info.defines.append("NO_QWT_WIDGETS")
    if self.options.opengl:
        self.cpp_info.requires.append("qt::qtOpenGL")
        if Version(self.dependencies["qt"].ref.version).major >= "6":
            self.cpp_info.requires.append("qt::qtOpenGLWidgets")
    else:
        self.cpp_info.defines.append("QWT_NO_OPENGL")
    if self.options.svg:
        self.cpp_info.requires.append("qt::qtSvg")
    else:
        self.cpp_info.defines.append("QWT_NO_SVG")
    if self.options.designer:
        qt_plugin_path = os.path.join(
            self.package_folder, "res" if self.settings.os == "Windows" else "lib",
            f"qt{Version(self.dependencies['qt'].ref.version).major}", "plugins",
        )
        self.runenv_info.prepend_path("QT_PLUGIN_PATH", qt_plugin_path)
        # TODO: to remove in conan v2
        self.env_info.QT_PLUGIN_PATH.append(qt_plugin_path)