[CMAKE] Move-only: refactor qt/CMakeLists.txt
This is a move only diff that puts related things together.
It tries to avoid duplicating the tests in the file, and moves the
static build section after the bitcoin-qt-base target is defined
(prepare for adding the platform plugins to the target).
mkdir buildcmake && cd buildcmake cmake -GNinja .. ninja check
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D3091