-
Notifications
You must be signed in to change notification settings - Fork 1
/
sog.qbs
53 lines (42 loc) · 935 Bytes
/
sog.qbs
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import qbs 1.0
Project {
minimumQbsVersion: "1.6"
StaticLibrary {
name: "sog"
files: "sog/*.cc"
Depends { name: "cpp" }
cpp.cxxLanguageVersion: "c++1z"
Export {
Depends { name: "cpp" }
cpp.includePaths: product.sourceDirectory
cpp.cxxLanguageVersion: "c++1z"
}
}
StaticLibrary {
name: "testlib"
builtByDefault: false
files: "test/*.cc";
excludeFiles: "test/*_test.cc"
Depends { name: "cpp" }
Depends { name: "sog" }
Export {
Depends { name: "cpp" }
Depends { name: "sog" }
cpp.includePaths: product.sourceDirectory
}
}
CppApplication {
name: "test"
type: ["application", "autotest"]
files: "test/*_test.cc"
excludeFiles: "test/macro_func_test.cc"
cpp.defines: "__LINE__=1337"
Group {
files: "test/macro_func_test.cc"
cpp.defines: []
}
Depends { name: "testlib" }
cpp.dynamicLibraries: ["gtest", "gtest_main"]
}
AutotestRunner { }
}