blob: 35dd7a00fbdf89043160483a483aa14fd0e60207 (
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
|
Project {
property bool setRunPaths
Product {
name: "theLib"
type: ["dynamiclibrary"]
Depends { name: "cpp" }
qbs.installPrefix: ""
Group {
fileTagsFilter: product.type
qbs.install: true
qbs.installDir: "lib"
}
files: ["lib.cpp"]
}
CppApplication {
name: "app"
Depends { name: "theLib" }
files: ["main.cpp"]
cpp.rpaths: qbs.installRoot + "/lib"
cpp.systemRunPaths: project.setRunPaths ? [qbs.installRoot + "/lib"] : []
}
Probe {
id: checker
property bool isUnix: qbs.targetOS.contains("unix")
configure: { console.info("is unix: " + isUnix); }
}
}
|