An APU runs at a constant speed and therefore the Generator is mounted directly on the gearbox. An IDG is a combination of a gearbox and a generator as a whole called IDG, the gearbox in the IDG makes sure that the generator stays between a certain speed in order to keep the poweroutput within a certain range. Hope it helps