diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-05-24 15:35:20 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-06-03 11:03:46 +0000 |
commit | 6c69a6ab7c61d03150ed2e58725c3a61a443fdc0 (patch) | |
tree | d6afabf14cc77b22b01b0a4f3e484ac83be31271 /src/qmlmodels | |
parent | 677d336def1686d0d6d8f6d55bf8e2686ed27e07 (diff) |
Initial CMake port
Crude port of QtQml, QtQmlModels, QtQuick and a few tests and a few
examples.
Task-number: QTBUG-74136
Change-Id: I5de4d8215b33d1a4a72c2c0e7951e4b384f27e3e
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qmlmodels')
-rw-r--r-- | src/qmlmodels/CMakeLists.txt | 60 | ||||
-rw-r--r-- | src/qmlmodels/configure.cmake | 37 |
2 files changed, 97 insertions, 0 deletions
diff --git a/src/qmlmodels/CMakeLists.txt b/src/qmlmodels/CMakeLists.txt new file mode 100644 index 0000000000..bbfedc60e6 --- /dev/null +++ b/src/qmlmodels/CMakeLists.txt @@ -0,0 +1,60 @@ +# Generated from qmlmodels.pro. + +##################################################################### +## QmlModels Module: +##################################################################### + +add_qt_module(QmlModels + SOURCES + qqmlchangeset.cpp qqmlchangeset_p.h + qqmlmodelsmodule.cpp qqmlmodelsmodule_p.h + qtqmlmodelsglobal.h qtqmlmodelsglobal_p.h + DEFINES + QT_NO_FOREACH + QT_NO_INTEGER_EVENT_COORDINATES + QT_NO_URL_CAST_FROM_STRING + LIBRARIES + Qt::CorePrivate + Qt::QmlPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Qml +) + +#### Keys ignored in scope 1:.:.:qmlmodels.pro:<TRUE>: +# _LOADED = "qt_module" + +## Scopes: +##################################################################### + +extend_target(QmlModels CONDITION QT_FEATURE_qml_object_model + SOURCES + qqmlinstantiator.cpp qqmlinstantiator_p.h + qqmlinstantiator_p_p.h + qqmlobjectmodel.cpp qqmlobjectmodel_p.h +) + +extend_target(QmlModels CONDITION QT_FEATURE_qml_table_model + SOURCES + qqmltableinstancemodel.cpp qqmltableinstancemodel_p.h + qqmltablemodel.cpp qqmltablemodel_p.h + qqmltablemodelcolumn.cpp qqmltablemodelcolumn_p.h +) + +extend_target(QmlModels CONDITION QT_FEATURE_qml_list_model + SOURCES + qqmllistmodel.cpp qqmllistmodel_p.h + qqmllistmodel_p_p.h + qqmllistmodelworkeragent.cpp qqmllistmodelworkeragent_p.h +) + +extend_target(QmlModels CONDITION QT_FEATURE_qml_delegate_model + SOURCES + qqmladaptormodel.cpp qqmladaptormodel_p.h + qqmldelegatecomponent.cpp qqmldelegatecomponent_p.h + qqmldelegatemodel.cpp qqmldelegatemodel_p.h + qqmldelegatemodel_p_p.h + qqmllistaccessor.cpp qqmllistaccessor_p.h + qqmllistcompositor.cpp qqmllistcompositor_p.h + qquickpackage.cpp qquickpackage_p.h +) diff --git a/src/qmlmodels/configure.cmake b/src/qmlmodels/configure.cmake new file mode 100644 index 0000000000..086b08ca8a --- /dev/null +++ b/src/qmlmodels/configure.cmake @@ -0,0 +1,37 @@ + + +#### Inputs + + + +#### Libraries + + + +#### Tests + + + +#### Features + +qt_feature("qml_object_model" PRIVATE + SECTION "QML" + LABEL "QML list model" + PURPOSE "Provides the ObjectModel and Instantiator QML types." +) +qt_feature("qml_list_model" PRIVATE + SECTION "QML" + LABEL "QML list model" + PURPOSE "Provides the ListModel QML type." +) +qt_feature("qml_delegate_model" PRIVATE + SECTION "QML" + LABEL "QML delegate model" + PURPOSE "Provides the DelegateModel QML type." + CONDITION QT_FEATURE_qml_object_model +) +qt_feature("qml_table_model" PRIVATE + SECTION "QML" + LABEL "QML table model" + PURPOSE "Provides the TableModel QML type." +) |