diff options
author | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-02-02 16:44:55 +0100 |
---|---|---|
committer | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-02-22 10:04:10 +0100 |
commit | db81d9f54957af05b0e8ad7fd553cf8287f5a9e5 (patch) | |
tree | b119476795b180e5fddcafa0232d6c32c5db8336 /examples/quick/externaldraganddrop/CMakeLists.txt | |
parent | 092ba09a8c95e4f6362ef338d5c10784e3bde75d (diff) |
Replace AUTO_RESOURCE_PREFIX with Qt CMake Policy in examples, tests
Every instance of AUTO_RESOURCE_PREFIX has been replaced by either
qt_standard_project_setup(REQUIRES 6.5) or with
qt_policy(SET QTP0001 NEW), mainly in tests.
In addition, I added a warning message for the case where
AUTO_RESOURCE_PREFIX is used.
Task-number: QTBUG-96233
Change-Id: I323a15e9d0bb5fe6ba649365314af9fc2ad67bda
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
(cherry picked from commit 8f7080fd0957fea3a67a255e5344ab125fa3c33f)
Diffstat (limited to 'examples/quick/externaldraganddrop/CMakeLists.txt')
-rw-r--r-- | examples/quick/externaldraganddrop/CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/quick/externaldraganddrop/CMakeLists.txt b/examples/quick/externaldraganddrop/CMakeLists.txt index 3c31d55fa4..49820ac6f4 100644 --- a/examples/quick/externaldraganddrop/CMakeLists.txt +++ b/examples/quick/externaldraganddrop/CMakeLists.txt @@ -12,7 +12,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/quick/externaldraganddrop") find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick) -qt_standard_project_setup() +qt_standard_project_setup(REQUIRES 6.5) qt_add_executable(externaldraganddropexample WIN32 @@ -22,7 +22,6 @@ qt_add_executable(externaldraganddropexample qt_add_qml_module(externaldraganddropexample URI externaldraganddrop - AUTO_RESOURCE_PREFIX QML_FILES "DragAndDropTextItem.qml" "externaldraganddrop.qml" |