For how long have people known about lung cancer?

If someone came to a doctor in the early nineteenth century with blatant symptoms of lung cancer, would they have recognised it? When did doctors discover lung cancer and how to treat it, if they could treat it at all?