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: I2feef841541ea430a340fe08cdd454bebae358fd
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexey Edelev 2023-04-12 15:04:14 +02:00
parent b475a8222c
commit c2a6fc7782
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ project(Qt5Compat # special case
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core)
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Network Xml Gui Quick)
qt_internal_project_setup()
# Look for the target ShaderTools package to have access to the ShaderTools Qt module library.
# This is optional. When not present, runtime shader processing will not be available, and
# only a certain set of effects will be available