CMake: fail if `Qt5::GuiPrivate` is not found
authorAlexander Batischev <eual.jp@gmail.com>
Mon, 8 Nov 2021 12:31:50 +0000 (15:31 +0300)
committerAlexander Batischev <eual.jp@gmail.com>
Mon, 15 Nov 2021 10:57:18 +0000 (13:57 +0300)
commitd8560dcb1965a2ffa1b3a5fee14d57d62bf3a4f9
tree2cfe83b34e440b7fa7ca39b29edc2e43aefc8a7c
parent0e5f1d9a3045c6394fdd4fab63bb3b9b2911ad37
CMake: fail if `Qt5::GuiPrivate` is not found

`nextcloud` and `nextcloudCore` depend on three Qt5 components which
aren't mentioned in `find_library`: `Xml`, `Network`, and `GuiPrivate`.
The first two are omitted by mistake, apparently, so this commit just
adds them.

`GuiPrivate` is a special case: it doesn't have its own CMake config, so
adding it to "required components" in `find_package` will always fail
the build. Thus, we implement our own check instead.

Signed-off-by: Alexander Batischev <eual.jp@gmail.com>
src/gui/CMakeLists.txt