cmake: Move version setup into a separate .cmake file