cmake: Reorganize package finding
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 6 Aug 2018 21:35:00 +0000 (23:35 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
commit53f09c31bd4e59ffc1830660aebb221f52b06a6f
tree0d06958d5f9f1a077bf94a8c4402a4c2346d2cb5
parent60587d8c119e15b61ff7830ff9f6904b8511d174
cmake: Reorganize package finding

Use COMPONENTS to find required Qt5 modules in one go.
Don't look for QtWebKit if we already have QtWebEngine.
Look for Sonnet explicitly even when using KDE Frameworks, because
we're using its config widget and shouldn't rely on transitivity
here.
Only look for LDAP when building the core (or mono client).
Add QUIET everywhere to avoid spammy CMake warnings for optional
packages.
Add some diagnostic output indicating the versions of Qt and KF5.
CMakeLists.txt