blob: 08de04fc79dd273ca6b20a117c8cfadebadc0bf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import qbs.Host
Project {
CppApplication {
condition: {
var result = qbs.targetPlatform === Host.platform();
if (!result)
console.info("targetPlatform differs from hostPlatform");
return result;
}
name: "testApp"
type: ["application", "autotest"]
Depends { name: "autotest" }
cpp.cxxLanguageVersion: "c++11"
cpp.minimumOsxVersion: "10.8" // For <chrono>
Properties {
condition: qbs.toolchain.contains("gcc")
cpp.driverFlags: "-pthread"
}
files: "test-main.cpp"
}
AutotestRunner {
Depends {
name: "cpp" // Make sure build environment is set up properly.
condition: Host.os().contains("windows") && qbs.toolchain.contains("gcc")
}
}
}
|