You measure both. The wheel mounting surface to be sure you'll get the wheels where you want them, and the distance between the drums to be sure they will fit outside the springs and frame.
Generally if the wheel mounting surface is right the other will be also, but not always.