def METHOD_NAME(self):
    self.cpp_info.libs = collect_libs(self)
    if self.options.with_ssl:
        self.cpp_info.defines.append("HAVE_SSL=1")
    if self.options.with_postgres:
        self.cpp_info.defines.append("HAVE_POSTGRESQL=1")
    if self.options.with_mysql:
        self.cpp_info.defines.append("HAVE_MYSQL=1")
    if self.settings.os == "Windows":
        self.cpp_info.system_libs.extend(["ws2_32"])
    elif self.settings.os in ["Linux", "FreeBSD"]:
        self.cpp_info.system_libs.extend(["pthread", "m"])