summaryrefslogtreecommitdiffstats
path: root/examples/sql/querymodel
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sql/querymodel')
-rw-r--r--examples/sql/querymodel/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/sql/querymodel/CMakeLists.txt b/examples/sql/querymodel/CMakeLists.txt
index a31abc40fc..e4127baeef 100644
--- a/examples/sql/querymodel/CMakeLists.txt
+++ b/examples/sql/querymodel/CMakeLists.txt
@@ -9,8 +9,10 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
-set(INSTALL_EXAMPLEDIR "examples")
+set(INSTALL_EXAMPLEDIR "examples/sql/querymodel")
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Sql)
find_package(Qt6 COMPONENTS Widgets)
@@ -21,6 +23,8 @@ add_qt_gui_executable(querymodel
main.cpp
)
target_link_libraries(querymodel PUBLIC
+ Qt::Core
+ Qt::Gui
Qt::Sql
Qt::Widgets
)