wireshark/doc/plugins.example
João Valverde d0b97a420d CMake: Modernize config-file package support
A CMake config-file package provides support for downstreams using
CMake and Wireshark libraries to easily configure the libwireshark
dependency with:
  find_package(Wireshark CONFIG [REQUIRED])
  target_link_libraries(foo epan)

The FindWireshark.cmake file is no longer needed.

See cmake-package(7) for more details on CMake's package system.

Change-Id: Ie8af1d44417a99dd08d37959f7b2ffca88572ec2
Reviewed-on: https://code.wireshark.org/review/29208
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot
Reviewed-by: João Valverde <j@v6e.pt>
2018-08-25 18:07:21 +00:00
..
CMakeLists.txt CMake: Modernize config-file package support 2018-08-25 18:07:21 +00:00
README Expand doc/pugins.example README a bit. 2018-05-23 14:32:07 +00:00
hello.c plugins: Minor interface improvement 2018-08-21 19:56:12 +00:00

README

This is an example of how to build a Wireshark plugin out-of-tree.

Tested on Linux using GCC 7. Note this builds against Wireshark's *installed*
version. You should of course adapt to your own needs.

To build/install the plugin:

$ mkdir build && cd build
$ cmake ..
$ make
$ sudo make install

If your wireshark.pc file is not in one of the standard pkg-config search paths
you will have to tell pkg-config where to find it. Arguably the easiest way to
do so is setting PKG_CONFIG_PATH in your build environment, for example:

$ export PKG_CONFIG_PATH="/usr/local/lib64/pkgconfig"