cmake split into several commands.