forked from qt-creator/qt-creator
Follows 470c95c94b
Change-Id: Ie26b5677d28e645ab27aeebf5976b5507385716a
Reviewed-by: hjk <hjk@qt.io>
32 lines
1.0 KiB
QML
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",
|
|
]
|
|
}
|