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