cmake: Modernize translation generation
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 21 Aug 2018 21:31:45 +0000 (23:31 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
commita078e08390e41385a3145f22e83afbf622621c2f
treec0a74a3219d5e6e190470c54647d8706db0b87fd
parent1a45f16a9734820fba42fe1db3f38dd1eee49df6
cmake: Modernize translation generation

Refactor and modernize the CMake support for translation generation.
Properly use targets, custom commands and dependencies to ensure that
files are only regenerated when needed, and avoid useless rebuilds.

Avoid individual invocations of lupdate and lrelease, which both
support processing multiple files at once.

Make use of the newly added quassel_add_resource function instead of
building the .qrc file explicitly.

Fix LINGUAS support, which was previously not working as intended.
cmake/QuasselMacros.cmake
po/CMakeLists.txt