forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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" }
|
||||
|
@@ -10,6 +10,11 @@ Product {
|
||||
fileTags: ["hpp.in"]
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "other"
|
||||
files: "app_version.h.cmakein"
|
||||
}
|
||||
|
||||
Depends { name: "qtc" }
|
||||
|
||||
Rule {
|
||||
|
Reference in New Issue
Block a user