diff -ruN quarter/CMakeLists.txt quarter-my/CMakeLists.txt
--- quarter/CMakeLists.txt	2019-12-25 19:44:38.000000000 +0100
+++ quarter-my/CMakeLists.txt	2020-10-06 20:16:47.094206772 +0200
@@ -90,7 +90,11 @@
 find_package(Spacenav)
 
 if(QUARTER_USE_QT5)
-  find_package(Qt5 COMPONENTS Widgets UiTools OpenGL Designer REQUIRED)
+  if(QUARTER_BUILD_PLUGIN)
+    find_package(Qt5 COMPONENTS Widgets UiTools OpenGL Designer REQUIRED)
+  else()
+    find_package(Qt5 COMPONENTS Widgets OpenGL REQUIRED)
+  endif()
 endif()
 
 if(Qt5_FOUND)
