Wireshark-dev: Re: [Wireshark-dev] Windows automated builds migrated to CMake

From: Gerald Combs <gerald@xxxxxxxxxxxxx>
Date: Thu, 16 Apr 2015 09:09:28 -0700
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.