diff options
author | Christian Stenger <christian.stenger@qt.io> | 2022-02-22 15:43:21 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2022-02-23 08:44:36 +0000 |
commit | 3efec2b887483cc4668805a0da6752f4692985f7 (patch) | |
tree | 3ae2756fbbe7f7da45dfdb8c5a0c1b18859d457e | |
parent | b0a7fe31c02c962eb943907f27d6acbb52d04239 (diff) | |
download | qt-creator-3efec2b887483cc4668805a0da6752f4692985f7.tar.gz |
Tests: Add build files for qml-ast2dot
Change-Id: I5d439be4442ab5c41935534b93ebc9d6868cb880
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | tests/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/tests.qbs | 1 | ||||
-rw-r--r-- | tests/tools/qml-ast2dot/CMakeLists.txt | 13 | ||||
-rw-r--r-- | tests/tools/qml-ast2dot/qml-ast2dot.qbs | 21 |
4 files changed, 36 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 71bf9613a5..3e961231ca 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,4 +1,4 @@ add_subdirectory(auto) add_subdirectory(manual) -# add_subdirectory(tools) +add_subdirectory(tools/qml-ast2dot) add_subdirectory(unit) diff --git a/tests/tests.qbs b/tests/tests.qbs index adabf7a398..fc634c93d0 100644 --- a/tests/tests.qbs +++ b/tests/tests.qbs @@ -5,6 +5,7 @@ Project { references: [ "auto/auto.qbs", "manual/manual.qbs", + "tools/qml-ast2dot/qml-ast2dot.qbs", "unit/unit.qbs", ] } diff --git a/tests/tools/qml-ast2dot/CMakeLists.txt b/tests/tools/qml-ast2dot/CMakeLists.txt new file mode 100644 index 0000000000..5e4a852243 --- /dev/null +++ b/tests/tools/qml-ast2dot/CMakeLists.txt @@ -0,0 +1,13 @@ +add_qtc_executable(qml_ast2dot + BUILD_DEFAULT OFF + DEPENDS Qt5::Core Qt5::Gui QmlJS + SOURCES main.cpp +) + +extend_qtc_executable(qml_ast2dot + PROPERTIES + OUTPUT_NAME "qml-ast2dot" + LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" + ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" +) diff --git a/tests/tools/qml-ast2dot/qml-ast2dot.qbs b/tests/tools/qml-ast2dot/qml-ast2dot.qbs new file mode 100644 index 0000000000..2fbf3676c9 --- /dev/null +++ b/tests/tools/qml-ast2dot/qml-ast2dot.qbs @@ -0,0 +1,21 @@ +import qbs.FileInfo + +CppApplication { + Depends { name: "QmlJS" } + Depends { name: "Qt.gui" } + + cpp.cxxLanguageVersion: "c++17" + consoleApplication: true + targetName: "qml-ast2dot" + builtByDefault: false + + files: [ + "main.cpp" + ] + + destinationDirectory: FileInfo.joinPaths( + FileInfo.path(project.buildDirectory + '/' + + FileInfo.relativePath(project.ide_source_tree, + sourceDirectory)), + "qml-ast2dot") +} |