I upgraded my project code from Qt4 to Qt5. It uses CMake. The conversion got well except for one line of Cmake commands related to Qt. I can’t find in current documentation
EDIT : Thanks to Archi comment (see below), simply add
target_link_libraries( Qt5::WinMain)
or
target_link_libraries( ${Qt5Core_QTMAIN_LIBRARIES})
in your application's CMakeLists.txt. Both syntaxes worked for me.