CMake: Create a translations/catalogs.json file


...that contains an array of JSON objects for each translation catalog.
The objects have the following keys:
  name:
    the catalog's name
  repositories:
    the Qt repositories the catalog contains translations for
  modules:
    array of modules the catalog contains translations for

The repositories are automatically deduced from the DIRECTORIES argument
of add_ts_targets.

The modules are specified with the MODULES argument of add_ts_targets.

This catalogs.json file is supposed to be read by windeployqt (and
potentially, other deployment tools).

Task-number: QTBUG-106342
Change-Id: Id375aa023fd90ca263bd61e92dcb9cfbe228aebd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commit586cb3b95bdfdf25c7d5960a0136a69618e0bedf
parenta08294be102da3215754cab75ab9cbb17406a5b8
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeFri, 20 Jan 2023 15:46:29 +0100