aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlpreview
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-06-05 17:02:52 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-06-08 08:22:42 +0000
commit5a3e668533450e82d0159596e5c24e738905f5f7 (patch)
tree87e769d1cd0f6c6d9e83d309eebab46ad634ece8 /tools/qmlpreview
parentf6f5687032bd6451e52c9ef221fb6a8a5b194389 (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/qmlpreview')
-rw-r--r--tools/qmlpreview/.prev_CMakeLists.txt21
-rw-r--r--tools/qmlpreview/CMakeLists.txt22
2 files changed, 43 insertions, 0 deletions
diff --git a/tools/qmlpreview/.prev_CMakeLists.txt b/tools/qmlpreview/.prev_CMakeLists.txt
new file mode 100644
index 0000000000..4fbad0984b
--- /dev/null
+++ b/tools/qmlpreview/.prev_CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from qmlpreview.pro.
+
+#####################################################################
+## qmlpreview Tool:
+#####################################################################
+
+add_qt_tool(qmlpreview
+ SOURCES
+ main.cpp
+ qmlpreviewapplication.cpp qmlpreviewapplication.h
+ qmlpreviewfilesystemwatcher.cpp qmlpreviewfilesystemwatcher.h
+ LIBRARIES
+ Qt::QmlDebugPrivate
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::QmlDebug
+)
+
+#### Keys ignored in scope 1:.:.:qmlpreview.pro:<TRUE>:
+# QMAKE_TARGET_DESCRIPTION = "QML" "Preview"
+# _LOADED = "qt_tool"
diff --git a/tools/qmlpreview/CMakeLists.txt b/tools/qmlpreview/CMakeLists.txt
new file mode 100644
index 0000000000..84397a23ff
--- /dev/null
+++ b/tools/qmlpreview/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from qmlpreview.pro.
+
+#####################################################################
+## qmlpreview Tool:
+#####################################################################
+
+add_qt_tool(qmlpreview
+ TOOLS_TARGET Qml # special case
+ SOURCES
+ main.cpp
+ qmlpreviewapplication.cpp qmlpreviewapplication.h
+ qmlpreviewfilesystemwatcher.cpp qmlpreviewfilesystemwatcher.h
+ LIBRARIES
+ Qt::QmlDebugPrivate
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::QmlDebug
+)
+
+#### Keys ignored in scope 1:.:.:qmlpreview.pro:<TRUE>:
+# QMAKE_TARGET_DESCRIPTION = "QML" "Preview"
+# _LOADED = "qt_tool"