diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-04-12 15:04:14 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2023-05-10 18:50:53 +0200 |
commit | 5efae5862f46cce079623a060fd9abd9b11091ef (patch) | |
tree | 9be9eb547bd0252e686f20aea36a73df58151ed1 | |
parent | 0074fb6925e25aeaf89890fd918e872fe8798d5a (diff) | |
download | qtimageformats-5efae5862f46cce079623a060fd9abd9b11091ef.tar.gz |
Add the use of the qt_internal_project_setup function
The function sets the required CMake variables and policies.
Pick-to: 6.5
Task-number: QTBUG-112685
Change-Id: Icf3d63847085b11e2453978f0dc51b968847c5bb
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 684482d..97a9b9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,8 @@ project(QtImageFormats find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Gui) +qt_internal_project_setup() + if(NOT TARGET Qt::Gui) message(NOTICE "Skipping the build as the condition \"TARGET Qt::Gui\" is not met.") return() |