cmake: fix creation of translations

The translation target need to be added to the executable,
otherwise the .qm files are not compiled out of .ts files.