diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-04-12 15:04:14 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-05-11 07:18:06 +0000 |
commit | 506a03b17b4edbf5bf605da2692f09be4c9bf9c4 (patch) | |
tree | 98c61f969aeef094ad5a21a5715a3f2d32aef3e8 /CMakeLists.txt | |
parent | e4eb4e4317a596405cc68f1fd94a714d7d14dce6 (diff) |
Add the use of the qt_internal_project_setup function
The function sets the required CMake variables and policies.
Task-number: QTBUG-112685
Change-Id: Icf3d63847085b11e2453978f0dc51b968847c5bb
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
(cherry picked from commit 5efae5862f46cce079623a060fd9abd9b11091ef)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'CMakeLists.txt')
-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() |