Wireshark-dev: [Wireshark-dev] moc file generation using cmake auto macros
From: Paul Offord <Paul.Offord@xxxxxxxxxxxx>
Date: Thu, 20 Apr 2017 15:39:43 +0000

Hi,

 

I’m working through a long list of feedback points relating to a code submission I made - https://code.wireshark.org/review/#/c/19666/

 

Roland has rightly flagged that I need to generate the moc files with each cmake run.  I’ve never known how to do this – I currently use a .bat file to run a bunch of moc.exe commands.  I’m keen to learn how to do it.  These are his comments:

 

“moc_ files should be added using Qt5 macros, not by the file itself. They must be generated on every run of cmake using the auto macros, respectively on every run of make using the moc compiler.

They MUST NOT be included in the repository, as they change depending on the Qt version, the plugin is built with.”

 

Assume I know next to nothing about cmake (coz that’s the truth).  Can you tell me how to do what Roland suggests or point me to an example cmake file I can use as a template?

 

Thanks and regards…Paul


______________________________________________________________________

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.

Any views or opinions expressed are solely those of the author and do not necessarily represent those of Advance Seven Ltd. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.

Advance Seven Ltd. Registered in England & Wales numbered 2373877 at Endeavour House, Coopers End Lane, Stansted, Essex CM24 1SJ

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________