diff options
Diffstat (limited to 'tests/auto/utils/process/process.qbs')
-rw-r--r-- | tests/auto/utils/process/process.qbs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/auto/utils/process/process.qbs b/tests/auto/utils/process/process.qbs new file mode 100644 index 00000000000..0ff6e929fcf --- /dev/null +++ b/tests/auto/utils/process/process.qbs @@ -0,0 +1,29 @@ +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" +} |