diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-11-11 15:06:55 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-03-30 01:42:11 +0000 |
commit | 7e5942447bf3ba28343474e23e42e87e57d5cdb9 (patch) | |
tree | 9d1bb544be1de052f909dde374c795bae3f44845 /examples/CMakeLists.txt | |
parent | d872223fdfc11e72574eb36c86830127b9211f49 (diff) |
Add cmake support for examples
qml-i18n needed to be ported to CMake first. It uses qt_add_translations
introduced in 6.2
As a drive-by, move find_package calls from examples' CML to the top
level CML, and make the QtSql dependency optional. Also make sure that
we only add the dynamicscene example when the Quick target is available.
Fixes: QTBUG-90964
Change-Id: Id357eb14e4704753386e01393300966eb89b4e86
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 612d988243496aa1fc53442c0a385d633b411872)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/CMakeLists.txt')
-rw-r--r-- | examples/CMakeLists.txt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 86b8aaad1a..861b34e33c 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,5 +1,3 @@ -find_package(Qt6 REQUIRED COMPONENTS Sql) - qt_examples_build_begin(EXTERNAL_BUILD) add_subdirectory(qml) |