aboutsummaryrefslogtreecommitdiffstats
path: root/qtcreator.qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-08-24 10:18:44 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2020-08-24 10:18:08 +0000
commit643c9405bdf32f7df6037f8c6de51f2b3bdd098c (patch)
treec5c8ad398eda7688cf4e75ff7d8b23b02457821a /qtcreator.qbs
parent61c8a93522be5148d0104223a1278cc514d4bca4 (diff)
qbs build: Add cmake project files
... so they show up in the project tree and search results. Change-Id: I42ae1f0c2f96ea07952c7b23bd809cddd938c69f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'qtcreator.qbs')
-rw-r--r--qtcreator.qbs16
1 files changed, 16 insertions, 0 deletions
diff --git a/qtcreator.qbs b/qtcreator.qbs
index 5de03925df..64bc0b741d 100644
--- a/qtcreator.qbs
+++ b/qtcreator.qbs
@@ -48,6 +48,22 @@ Project {
}
}
+ Product {
+ name: "cmake project files"
+ files: {
+ var patterns = ["**/CMakeLists.txt", "**/*.cmake", "**/*.cmake.in"];
+ var list = [].concat(patterns);
+ var props = [additionalPlugins, additionalLibs, additionalTools, additionalAutotests];
+ for (var i = 0; i < props.length; ++i) {
+ for (var j = 0; j < props[i].length; ++j) {
+ for (var k = 0; k < patterns.length; ++k)
+ list.push(props[i][j] + "/" + patterns[k]);
+ }
+ }
+ return list;
+ }
+ }
+
AutotestRunner {
Depends { name: "Qt.core" }
Depends { name: "qtc" }