[Qt-creator] how to set binary different in debug and release mode
Matthias Pospiech
matthias.pospiech at gmx.de
Mon Aug 16 15:11:30 CEST 2010
André Pönitz schrieb:
> On Monday 16 August 2010 12:55:24 ext Matthias Pospiech wrote:
>
>> I set up the binary path different to the qmake standard. this means
>> that QtCreator always fails to execute the binary since it is not found.
>> Therefore I set up the path manually. However this can only be done for
>> a project and not independed for debug and release mode.
>>
>> However, I put release and debug version in different path and they have
>> different names.
>>
>> So my question is: can QtCreator (lastes stable version) define in one
>> project the executable different for debug and release mode?
>>
>
> See http://doc.trolltech.com/4.6/qmake-common-projects.html, especially the
> bits in the section titled "Building and Installing in Debug and Release Modes".
>
You probably misunderstood me. I have set up qmake correct. The problem
is within QtCreator and its project settings (or the likly missing of such)
The pro file contains this code:
win32-g++:COMPILER = mingw
win32-msvc*:COMPILER = msvc
linux-g++:COMPILER = gcc
CONFIG(debug, debug|release):win32:BINARY_NAME = $$join(BINARY_NAME,,,d)
TARGET = $${BINARY_NAME}
BIN_DIR = ../bin
debug:DESTDIR = $${BIN_DIR}/$${COMPILER}/debug/
release:DESTDIR = $${BIN_DIR}/$${COMPILER}/release/
but if I set in project settings that I want to use the directory and
binary:
E:\SVN\BeamProfileEvolution\bin\mingw\debug\BeamProfileEvolutiond.exe
then for release mode the _same_ binary is chosen which is obviously
wrong. If I change it in release mode than in debug it is wrong.
So my question is whether the executable can be chosen differen in
_QtCreator_ for debug and release mode.
Matthias
More information about the Qt-creator-old
mailing list