I use the latest QT SDK under Windows and wonder how I determine the working directory based on the type of assembly. I need a different working directory, and also release and debug builds of the same project. For example, I have a launch target called MyProgram and two build targets, Release and Debug. MyProgram depends on some external libraries. When I run MyProgram in debugging, I need it to run in the C: \ foo \ bar \ libraries \ debug directory, however, when I run it in the version, I need to run it in the C: \ foo \ bar \ libraries \ directory release. It seems that the working directory depends only on the launch target, and not on the build target. Is there a way to specify the working directory based on both the launch and the build target? Can I use a variable to indicate release / debugging in the working directory?
source share