forked from qt-creator/qt-creator
Follows 470c95c94b
Change-Id: Ie26b5677d28e645ab27aeebf5976b5507385716a
Reviewed-by: hjk <hjk@qt.io>
30 lines
1.0 KiB
QML
30 lines
1.0 KiB
QML
import qbs.FileInfo
|
|
|
|
Project {
|
|
QtcAutotest {
|
|
name: "Process autotest"
|
|
|
|
Depends { name: "Utils" }
|
|
Depends { name: "app_version_header" }
|
|
|
|
files: [
|
|
"processtestapp/processtestapp.cpp",
|
|
"processtestapp/processtestapp.h",
|
|
"tst_process.cpp",
|
|
]
|
|
cpp.defines: {
|
|
var defines = base;
|
|
if (qbs.targetOS === "windows")
|
|
defines.push("_CRT_SECURE_NO_WARNINGS");
|
|
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="'
|
|
+ FileInfo.joinPaths(destinationDirectory, "processtestapp") + '"');
|
|
return defines;
|
|
}
|
|
}
|
|
references: "processtestapp/processtestapp.qbs"
|
|
}
|