PDA

View Full Version : VS2005 proj file has unwanted name



Vanir
12th February 2008, 15:37
Hi,

I have a .pro as shown:


TEMPLATE = app
TARGET = test_01
CONFIG += qt
CONFIG += debug_and_release
win32:CONFIG += console
DEPENDPATH += .
INCLUDEPATH += .

CONFIG( release, release|debug ) {
OBJECTS_DIR = release
MOC_DIR = release
UI_DIR = release
DESTDIR = release
} else {
TARGET = $$join(TARGET,,,d)
OBJECTS_DIR = debug
MOC_DIR = debug
UI_DIR = debug
DESTDIR = debug
}


SOURCES = test_01.cpp


Now, when I use the command

qmake -t vcapp

a VS2005 .proj file named test_01d is created. Why?
I want a .proj file named test_01 to be created but still having the debug target end with a 'd'.
How can I modify the .pro file to attain this?
OK, do an F2, but that's too much hard manual work!

Thanks,

Vanir

jacek
12th February 2008, 19:06
Is there only one .pro file? And how about using -o option?

Vanir
13th February 2008, 09:48
Thanks Jacek.

Yes, I was dealing with only one 'pro' file. I thought the -o option was for creating makefiles only.

I read this from the Qt Assistant - Running qmake
"qmake -makefile -unix -o Makefile "CONFIG+=test" test.pro".

My silly mistake.

spud
13th February 2008, 15:53
See this thread (http://www.qtcentre.org/forum/f-qt-programming-2/t-qt-432-vcproj-generation-annoyance-9642.html). The key is the undocumented build_pass scope:

build_pass:CONFIG(debug, debug|release){
TARGET = $$join(TARGET,,,_d)
}