2022-02-01 12:18:21 +01:00
|
|
|
import qbs.FileInfo
|
|
|
|
|
|
|
|
|
|
QtcProduct {
|
2023-09-18 16:25:12 +02:00
|
|
|
condition: qtc.withAutotests
|
2023-09-14 12:15:19 +02:00
|
|
|
destinationDirectory: project.buildDirectory + '/'
|
|
|
|
|
+ FileInfo.relativePath(project.ide_source_tree, sourceDirectory)
|
|
|
|
|
targetName: "tst_" + name.split(' ').join("")
|
|
|
|
|
type: "application"
|
|
|
|
|
|
|
|
|
|
install: false
|
2022-02-01 12:18:21 +01:00
|
|
|
|
|
|
|
|
Depends { name: "Qt.testlib" }
|
|
|
|
|
Depends { name: "copyable_resource" }
|
|
|
|
|
|
|
|
|
|
cpp.defines: {
|
|
|
|
|
var defines = base.filter(function(d) { return d !== "QT_RESTRICTED_CAST_FROM_ASCII"; });
|
|
|
|
|
return defines;
|
|
|
|
|
}
|
2023-09-14 12:15:19 +02:00
|
|
|
cpp.rpaths: [
|
|
|
|
|
project.buildDirectory + '/' + qtc.ide_library_path,
|
|
|
|
|
project.buildDirectory + '/' + qtc.ide_plugin_path
|
|
|
|
|
]
|
2022-02-01 12:18:21 +01:00
|
|
|
}
|