diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-06-05 17:02:52 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-06-08 08:22:42 +0000 |
commit | 5a3e668533450e82d0159596e5c24e738905f5f7 (patch) | |
tree | 87e769d1cd0f6c6d9e83d309eebab46ad634ece8 /tools/qmlscene | |
parent | f6f5687032bd6451e52c9ef221fb6a8a5b194389 (diff) |
Port the declarative tools
Also fix up QmlDevTools module to not depend on QtQml,
but instead make it include the headers / cpp files as it is done
in the qmake project.
Change-Id: I240c52d5357db150a7c0c819892fb0a3708ceee4
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tools/qmlscene')
-rw-r--r-- | tools/qmlscene/.prev_CMakeLists.txt | 37 | ||||
-rw-r--r-- | tools/qmlscene/CMakeLists.txt | 38 |
2 files changed, 75 insertions, 0 deletions
diff --git a/tools/qmlscene/.prev_CMakeLists.txt b/tools/qmlscene/.prev_CMakeLists.txt new file mode 100644 index 0000000000..ba1c200bd0 --- /dev/null +++ b/tools/qmlscene/.prev_CMakeLists.txt @@ -0,0 +1,37 @@ +# Generated from qmlscene.pro. + +##################################################################### +## qmlscene Tool: +##################################################################### + +add_qt_tool(qmlscene + SOURCES + main.cpp + DEFINES + QML_RUNTIME_TESTING + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + Qt::QuickPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::Qml + Qt::Quick +) + +#### Keys ignored in scope 1:.:.:qmlscene.pro:<TRUE>: +# QMAKE_TARGET_DESCRIPTION = "QML" "Scene" "Viewer" +# _LOADED = "qt_tool" + +## Scopes: +##################################################################### + +extend_target(qmlscene CONDITION TARGET Qt::Widgets + PUBLIC_LIBRARIES + Qt::Widgets +) + +extend_target(qmlscene CONDITION QT_FEATURE_qml_debug + DEFINES + QT_QML_DEBUG_NO_WARNING +) diff --git a/tools/qmlscene/CMakeLists.txt b/tools/qmlscene/CMakeLists.txt new file mode 100644 index 0000000000..e9796871f5 --- /dev/null +++ b/tools/qmlscene/CMakeLists.txt @@ -0,0 +1,38 @@ +# Generated from qmlscene.pro. + +##################################################################### +## qmlscene Tool: +##################################################################### + +add_qt_tool(qmlscene + TOOLS_TARGET Qml # special case + SOURCES + main.cpp + DEFINES + QML_RUNTIME_TESTING + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + Qt::QuickPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::Qml + Qt::Quick +) + +#### Keys ignored in scope 1:.:.:qmlscene.pro:<TRUE>: +# QMAKE_TARGET_DESCRIPTION = "QML" "Scene" "Viewer" +# _LOADED = "qt_tool" + +## Scopes: +##################################################################### + +extend_target(qmlscene CONDITION TARGET Qt::Widgets + PUBLIC_LIBRARIES + Qt::Widgets +) + +extend_target(qmlscene CONDITION QT_FEATURE_qml_debug + DEFINES + QT_QML_DEBUG_NO_WARNING +) |