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
This is an old question, but anyways, there is a better solution than all of the other ones posted here:
CMAKE_POLICY(SET CMP0020 NEW)
Adding this will automatically handle everything for you. CMake should actually output a warning if you don't set this policy, at least that's how I learned of its existence.