I've written a test plugin for Wireshark. I did the following:
This all looked fine but Visual Studio hadn't picked up the External References, and I wasn't keen to hunt down the various include files and add them manually. What to do? This is a rhetorical question as I've figured out the fix but it's worth documenting here. asked 08 Nov '15, 14:46 PaulOfford |
One Answer:
The answer is:
For me, the cmake command to create the build files was:
The above is described in the README.plugins file but it's in the section 3.2 Permanent addition and I skipped over it because I wasn't writing a permanent addition. Best regards...Paul answered 08 Nov '15, 14:58 PaulOfford |
The correct solution is to copy CMakeListsCustom.txt.example in the root of the source tree to CMakeListsCustom.txt and edit as required.
The reason for this is that modifying the main CMakeLists.txt will change a git controlled file, so you'll always have to manage a merge when you update from the Wireshark repository. Using the custom file avoids this.
There is provision for similar CMakeListsCustom.txt files in the epan and ui\gtk directories.
Thanks Graham. That sounds a much better solution.