>Windows, CMake and console

>When playing around with Qt on Windows one always runs into the console issue. Some sooner, others later. The problem is that a Windows application does not have a console by default. When thinking about this, it is pretty obvious, given the nature of Windows.

This means that qDebug and friends cannot output to anything, so you don’t get any feedback at run-time. The solution to this has always been to add a line reading CONFIG += console in the project file.

Now I’m trying to find out how this is handles when I’m building using CMake. Does anybody know? Please leave a comment!