PDA

View Full Version : making qmake create VisualStudio console app project file?



akos.maroy
18th August 2008, 12:58
I'm trying to use qmake in a cross-platform environment, where I'd use it to create Visual Studio project files under Windows. I'm using the following construct in the qmake project file:

win32 {
TEMPLATE = vcapp
}

and them have QMAKESPEC=win32-msvc2008, then indeed, qmake createa Visual Studio project file for me. but, the project file is a 'windows' application project (e.g. with the linker flag: /subsystem:windows), and of course it's looking for WinMain() instead of main() as the entry point.

how do I make qmake create a console app visual studio project file? that is, /subsystem:console ?

jpn
18th August 2008, 13:28
CONFIG += console

akos.maroy
18th August 2008, 14:45
CONFIG += console

thanks, works great!