Non-Console Application with Cmake
ADD_EXECUTABLE( ${PROJECTNAME} WIN32 ${HEADER_FILES} ${CPP_FILES} ${QT_MOC_HDRS} ${QT_UIS} ${QT_QRCS})
SET_TARGET_PROPERTIES(${PLUGINNAME} PROPERTIES DEBUG_POSTFIX _d)
TARGET_LINK_LIBRARIES( ${PROJECTNAME}
debug qtmaind.lib optimized qtmain.lib
debug QtCored4.lib optimized QtCore4.lib
debug QtGuid4.lib optimized QtGui4.lib
)
These are the important settings to get an app without console window.
Have phun