diff --git a/hyprqtplugin/CMakeLists.txt b/hyprqtplugin/CMakeLists.txt
index bbdb33a..c427670 100644
--- a/hyprqtplugin/CMakeLists.txt
+++ b/hyprqtplugin/CMakeLists.txt
@@ -1,5 +1,7 @@
 project(hyprqtplugin)
 
+find_package(Qt6 REQUIRED COMPONENTS Gui GuiPrivate)
+
 set(app_SRCS
   main.cpp
   PlatformTheme.cpp
