Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Cmake buildding custom plugins?

From: Anders Broman <anders.broman@xxxxxxxxxxxx>
Date: Fri, 29 Aug 2014 14:48:29 +0000

Actually cmake isn’t building custom built in dissectors either I think. How do you run cmake from the command line in Linux?

I don’t have a setup to run cmake currently…

Regards

Anders

 

From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Graham Bloice
Sent: den 29 augusti 2014 14:29
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] Cmake buildding custom plugins?

 

On 29 August 2014 12:59, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:

Hi,

With the other build systems one can easily add custom plugins dissectors using Custom.m4 Custom.mak and Custom.nmake

How to do that with cmake?

 

 

 

I think you need to modify the main CMakeLists.txt to add your plugin to PLUGIN_SRC_DIRS (along with a CMakeLists.txt for the actual plugin).

 

I see no reason why that couldn't be extended to include a CustomCMakeLists.txt in the plugins directory.

 

 

--

Graham Bloice