Skip to content

Commit

Permalink
qbs build: Add cmake project files
Browse files Browse the repository at this point in the history
... so they show up in the project tree and search results.

Change-Id: I42ae1f0c2f96ea07952c7b23bd809cddd938c69f
Reviewed-by: Christian Stenger <[email protected]>
  • Loading branch information
ckandeler committed Aug 24, 2020
1 parent 61c8a93 commit 643c940
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions qtcreator.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
5 changes: 5 additions & 0 deletions src/app/app_version_header.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Product {
fileTags: ["hpp.in"]
}

Group {
name: "other"
files: "app_version.h.cmakein"
}

Depends { name: "qtc" }

Rule {
Expand Down

0 comments on commit 643c940

Please sign in to comment.