I\'m making an application in Qt Creator, with cmake and MinGW as compiler. I\'ve seen this question being answered for other people, but they used regular Qt projects with .pro
For building with Mingw, add a CMake command:
set_target_properties(target_name PROPERTIES LINK_FLAGS "-mwindows")
Replace target_name with your target's name (first parameter to add_executable)
target_name