I am using CMake to compile my Qt 4 app and the compile and link all goes fine. The problem is that when you run the program, it does not give you a prompt straight away so you cannot continue using the prompt in that window. If you use qmake to compile, you get a prompt straight away. Also, if you run the program from Explorer, it always opens up a prompt window, but without a prompt, and if you close the window, it kills the Qt app.

Does anyone know how to get round this, other than by not using CMake which I don't want to do?