Files
qt-creator/tests/auto/utils/process/processtestapp/processtestapp.qbs
Jarek Kobus abce79939a Tests: Rename tst_QtcProcess -> tst_Process
Follows 470c95c94b

Change-Id: Ie26b5677d28e645ab27aeebf5976b5507385716a
Reviewed-by: hjk <hjk@qt.io>
2023-05-05 12:35:50 +00:00

32 lines
1.0 KiB
QML

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",
]
}