While great buildings do not count (and never have to my knowledge) many event or specialty buildings will such as the Airship, Statues of Honor, Elephant Buildings, Celtic Farmstead, to name a few. Otherwise, manual donation of the requisite amount is needed to satisfy the quest. (A combo of one or more of those types of buildings + manual donation will also satisfy the requirments of the quest. For instance, if your city produces 80 goods to the treasury upon collection and the quest is asking for 200, you'd only need to manually donate 200-80=120 goods).