diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-09-03 13:25:05 +0200 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2019-09-19 08:06:24 +0000 |
commit | ec57196980e6a32fce3c56ec3c9f8183c7bcaad1 (patch) | |
tree | e416385c724ca5ca07ae57e5c8c77ec58e79f0a1 /examples/quick/CMakeLists.txt | |
parent | 92025df4a52a2cf82e9a538968a8969cac08554c (diff) |
Add qt6_add_qml_module() public API
Add qt6_add_qml_module() as a public API for building QML modules.
Since the shared implementation details are small, it was easier
to just reimplement the shared code than to unmangle the more
complicated version we use to build Qt from QtBuild.
This patch includes an example conversion. Changes for pro2cmake
will follow in a separate patch in qtbase.
Change-Id: I942526cc7d978e2d8309b506e785f9c1509d0bbc
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'examples/quick/CMakeLists.txt')
-rw-r--r-- | examples/quick/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/CMakeLists.txt b/examples/quick/CMakeLists.txt index 889b46fa3e..a733e42f1c 100644 --- a/examples/quick/CMakeLists.txt +++ b/examples/quick/CMakeLists.txt @@ -38,6 +38,6 @@ endif() if(TARGET Qt::Widgets) add_subdirectory(embeddedinwidgets) endif() -if(QT_FEATURE_opengles2 OR (QT_FEATURE_opengl AND TARGET Qt::QuickWidgets) OR (QT_FEATURE_opengles3 AND TARGET Qt::Widgets)) +if(TARGET Qt::Widgets AND (QT_FEATURE_opengl OR QT_FEATURE_opengles2 OR QT_FEATURE_opengles3) AND (QT_FEATURE_opengles2 OR QT_FEATURE_opengles3 OR TARGET Qt::QuickWidgets)) add_subdirectory(quickwidgets) endif() |