There are a number of ways of cutting gears on a lathe. All the above will work, or, popular among clock makers, is to use the lathe spindle to hold the blank, with some sort of indexing rig up, and have the cutter mounted in a sort of yoke - independently driven and fitted to a vertical slide...