diff options
author | Fabian Kosmale <[email protected]> | 2024-07-02 11:51:21 +0200 |
---|---|---|
committer | Fabian Kosmale <[email protected]> | 2024-07-03 08:44:01 +0200 |
commit | 15a49ef0c1746f331635ebf51bb235e2b5c7df25 (patch) | |
tree | 8da2fa6eefd25c00fd82680e8cca2b11dc6f5158 /examples/quickcontrols/chattutorial/chapter3 | |
parent | 5b0f6b513102c483356df03602817add115c10c1 (diff) |
Examples: use qt_standard_project_setup in more places
And remove the redundant AUTOMOC lines.
This also avoids a few policy related warnings.
Task-number: QTBUG-126201
Pick-to: 6.8
Change-Id: Idaa58d7fbc0236aa2091ead43d5a0e6f396647e1
Reviewed-by: Ulf Hermann <[email protected]>
Reviewed-by: Mitch Curtis <[email protected]>
Reviewed-by: Olivier De Cannière <[email protected]>
Diffstat (limited to 'examples/quickcontrols/chattutorial/chapter3')
-rw-r--r-- | examples/quickcontrols/chattutorial/chapter3/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quickcontrols/chattutorial/chapter3/CMakeLists.txt b/examples/quickcontrols/chattutorial/chapter3/CMakeLists.txt index a101f3ebb3..68ad3a7c8d 100644 --- a/examples/quickcontrols/chattutorial/chapter3/CMakeLists.txt +++ b/examples/quickcontrols/chattutorial/chapter3/CMakeLists.txt @@ -4,10 +4,10 @@ cmake_minimum_required(VERSION 3.16) project(chapter3 LANGUAGES CXX) -set(CMAKE_AUTOMOC ON) - find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick) +qt_standard_project_setup(REQUIRES 6.8) + qt_add_executable(chattutorial-chapter3 WIN32 MACOSX_BUNDLE main.cpp ) |