aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/system-run-paths/system-run-paths.qbs
blob: 6e2137173b4922e6e9f2341bc47d18b3a823e195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"] : []
    }
}