diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-08-22 11:45:45 +0200 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2019-08-23 13:51:06 +0000 |
commit | b938edcfb3aa2c78e35c9d63d995f6824e14eadf (patch) | |
tree | 593a1eb2158d47b67d422259721198956d9f9a7f /examples/qml/CMakeLists.txt | |
parent | 2be575b4b1e6f6e11a8dbd0b1c05c003828d2598 (diff) |
Convert Examples
This patch converts all examples in qtdeclarative except for a few
exceptions which require a public facing qml plugin api.
Change-Id: I2cd2b1bb455be8b48796893a8235dea7f8b35aa2
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/qml/CMakeLists.txt')
-rw-r--r-- | examples/qml/CMakeLists.txt | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/examples/qml/CMakeLists.txt b/examples/qml/CMakeLists.txt index 496d36ba21..8ff3b7aa9b 100644 --- a/examples/qml/CMakeLists.txt +++ b/examples/qml/CMakeLists.txt @@ -1,14 +1,15 @@ # Generated from qml.pro. add_subdirectory(referenceexamples) -#add_subdirectory(tutorials) +add_subdirectory(tutorials) add_subdirectory(shell) - -#if(TARGET Qt::Quick) - #add_subdirectory(qmlextensionplugins) - #add_subdirectory(xmlhttprequest) - - #if(QT_FEATURE_qml_network) - #add_subdirectory(networkaccessmanagerfactory) - #endif() -#endif() +if(TARGET Qt::Quick) +# special case begin +# Needs public QML api +# add_subdirectory(qmlextensionplugins) +# special case end + add_subdirectory(xmlhttprequest) +endif() +if(QT_FEATURE_qml_network AND TARGET Qt::Quick) + add_subdirectory(networkaccessmanagerfactory) +endif() |