On 4/16/15 5:55 AM, Graham Bloice wrote:
>
> This is down to the subsystem type. The nmake builds are marked as
> "Windows Gui" and the CMake builds as "Windows Console". It's a linker
> flag, supplied in $(guiflags) for nmake builds (or $(conflags) for command
> line programs e.g. tshark.exe).
>
> I think CMake requires a set_target_properties(target_name PROPERTIES
> LINK_FLAGS "/SUBSYSTEM:WINDOWS") call for each gui target.
add_executable has a WIN32 flag which appears to take care of this.
Unfortunately it reveals another problem -- we don't have a WinMain entry
point in wireshark-qt.cpp.