blob: 1000451bc63564dd0ea17bac777fbdc4ecbda4dd (
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
29
30
31
32
33
34
35
|
import qbs
@if "%{TestFrameWork}" == "GTest"
import "../googlecommon.js" as googleCommon
@endif
CppApplication {
@if "%{TestFrameWork}" == "QtTest"
Depends { name: "Qt.testlib" }
@if "%{RequireGUI}" == "false"
consoleApplication: true
@else
Depends { name: "Qt.gui" }
@endif
files: [
"%{TestCaseFileWithCppSuffix}"
]
@else
consoleApplication: true
@if "%{GTestCXX11}" == "true"
cpp.cxxLanguageVersion: "c++11"
cpp.defines: [ "GTEST_LANG_CXX11" ]
@endif
cpp.dynamicLibraries: [ "pthread" ]
cpp.includePaths: [].concat(googleCommon.getGTestIncludes(project.googletestDir))
.concat(googleCommon.getGMockIncludes(project.googletestDir))
files: [
"%{MainCppName}",
"%{TestCaseFileWithHeaderSuffix}",
].concat(googleCommon.getGTestAll(project.googletestDir))
.concat(googleCommon.getGMockAll(project.googletestDir))
@endif
}
|