PDA

View Full Version : different output files in vcproj for release and debug



davisjamesf
20th July 2007, 16:03
What can I put in my .pro file that would create a vcproj file so that it would have a different output directory/filename in the output line when switching from debug to release?

example. I am making two static libraries (one for debug and one for release). The output directory is ..\lib and the filenames are DataToArray.lib (for release mode) and DataToArray_d.lib (for debug mode).

I'm using Qt4.3 and VS.NET 2003.

Thanks,
James

spud
20th July 2007, 16:23
DESTDIR = ../lib/

CONFIG(release, debug|release){
TARGET = DataToArray
}
CONFIG(debug, debug|release){
TARGET = DataToArray_d
}

davisjamesf
20th July 2007, 16:34
Hey Thanks! It works great!