blob: d10bc8763ae4bfe663337e70e255e1d8ed949509 (
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
|
import qbs.FileInfo
QtApplication {
name: "processtestapp"
Depends { name: "app_version_header" }
Depends { name: "qtc" }
Depends { name: "Utils" }
consoleApplication: true
cpp.cxxLanguageVersion: "c++17"
cpp.defines: {
var defines = base;
var absLibExecPath = FileInfo.joinPaths(qbs.installRoot, qbs.installPrefix,
qtc.ide_libexec_path);
var relLibExecPath = FileInfo.relativePath(destinationDirectory, absLibExecPath);
defines.push('TEST_RELATIVE_LIBEXEC_PATH="' + relLibExecPath + '"');
defines.push('PROCESS_TESTAPP="' + destinationDirectory + '"');
return defines;
}
cpp.rpaths: project.buildDirectory + '/' + qtc.ide_library_path
install: false
destinationDirectory: project.buildDirectory + '/'
+ FileInfo.relativePath(project.ide_source_tree, sourceDirectory)
files: [
"main.cpp",
"processtestapp.cpp",
"processtestapp.h",
]
}
|