diff options
author | Joerg Bornemann <[email protected]> | 2025-01-27 11:38:09 +0100 |
---|---|---|
committer | Joerg Bornemann <[email protected]> | 2025-01-27 23:02:02 +0100 |
commit | 483768fb8ed18fe5911d96f990ddbc69858146bb (patch) | |
tree | 76c0284eff115ab5a4ec3e8d531af9c1647dd85e | |
parent | 059210b17e50fd7c45af4ca0631ddcf8dd7c67f8 (diff) |
CMake: Fix examples built as external projects
Usage of a private module needs a respective find_package call now.
Pick-to: 6.9
Task-number: QTBUG-87776
Change-Id: I3a00a241c5e8637d28606c1f45a843b491c0a8bc
Reviewed-by: Alexandru Croitor <[email protected]>
5 files changed, 5 insertions, 5 deletions
diff --git a/examples/corelib/platform/androidnotifier/CMakeLists.txt b/examples/corelib/platform/androidnotifier/CMakeLists.txt index b356b15a437..476aa1a5af6 100644 --- a/examples/corelib/platform/androidnotifier/CMakeLists.txt +++ b/examples/corelib/platform/androidnotifier/CMakeLists.txt @@ -8,7 +8,7 @@ if(NOT ANDROID) message(FATAL_ERROR "Example only works on Android") endif() -find_package(Qt6 REQUIRED COMPONENTS Widgets) +find_package(Qt6 REQUIRED COMPONENTS Widgets CorePrivate) qt_standard_project_setup() diff --git a/examples/corelib/time/calendarbackendplugin/CMakeLists.txt b/examples/corelib/time/calendarbackendplugin/CMakeLists.txt index 4f1702c012a..d435d2aa423 100644 --- a/examples/corelib/time/calendarbackendplugin/CMakeLists.txt +++ b/examples/corelib/time/calendarbackendplugin/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.16) project(JulianGregorianCalendar VERSION 0.1 LANGUAGES CXX) -find_package(Qt6 REQUIRED COMPONENTS Core Widgets) +find_package(Qt6 REQUIRED COMPONENTS CorePrivate Widgets) qt_standard_project_setup() diff --git a/examples/gui/rhiwindow/CMakeLists.txt b/examples/gui/rhiwindow/CMakeLists.txt index 49b36286ee5..fde957b69c4 100644 --- a/examples/gui/rhiwindow/CMakeLists.txt +++ b/examples/gui/rhiwindow/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.16) project(rhiwindow LANGUAGES CXX) -find_package(Qt6 REQUIRED COMPONENTS Core Gui) +find_package(Qt6 REQUIRED COMPONENTS Core GuiPrivate) qt_standard_project_setup() diff --git a/examples/widgets/rhi/cuberhiwidget/CMakeLists.txt b/examples/widgets/rhi/cuberhiwidget/CMakeLists.txt index effa9a5a73b..4693cee8ad1 100644 --- a/examples/widgets/rhi/cuberhiwidget/CMakeLists.txt +++ b/examples/widgets/rhi/cuberhiwidget/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.16) project(cuberhiwidget LANGUAGES CXX) -find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets) +find_package(Qt6 REQUIRED COMPONENTS Core GuiPrivate Widgets) qt_standard_project_setup() diff --git a/examples/widgets/rhi/simplerhiwidget/CMakeLists.txt b/examples/widgets/rhi/simplerhiwidget/CMakeLists.txt index cf471f1f8a5..e1b444f028a 100644 --- a/examples/widgets/rhi/simplerhiwidget/CMakeLists.txt +++ b/examples/widgets/rhi/simplerhiwidget/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.16) project(simplerhiwidget LANGUAGES CXX) -find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets) +find_package(Qt6 REQUIRED COMPONENTS Core GuiPrivate Widgets) qt_standard_project_setup() |