I am trying to modify the install dir in qbs. I tried every possibility, which came in my mind.
I would like to install to the location of an env var...
but qbs always installs into a subdir in the dir where it was stated in (e.g. qtc_Desktop__0e446cd2-debug
)
I tried combinations of:
qbs.install: true
qbs.installDir: project.defaultLibInstallDir
qbs.installPrefix: project.defaultLibInstallPrefix
qbs.installRoot: project.defaultInstallRoot
I really like qbs, but can't figure out how the install should be used correctly.
I would appreciate an example, how an install to different system paths work (e.g. /usr/local/bin
and /usr/local/include
)
Update:
DynamicLibrary {
name: "software"
files: ["src/*.cpp", "src/*.hpp"]
Depends { name: "cpp" }
Group {
fileTagsFilter: product.type
qbs.install: true
qbs.installDir: "lib"
qbs.installPrefix: "/home/userName/someDir"
}
}