CMake: Modernize config-file package support
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>
Thu, 23 Aug 2018 21:03:28 +0000 (22:03 +0100)
committerJoão Valverde <j@v6e.pt>
Sat, 25 Aug 2018 18:07:21 +0000 (18:07 +0000)
commitd0b97a420d557042938ac5d6bf075fcd84df9371
tree4075a2072c60cf242d25b2706ce08ebd6f78750a
parente75905a583432e8b20cecdde71c41d17cb781392
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>
CMakeLists.txt
WiresharkConfig.cmake.in [new file with mode: 0644]
cmake/modules/FindWireshark.cmake [deleted file]
cmake/modules/WiresharkConfig.cmake.in [deleted file]
cmake/modules/WiresharkConfigVersion.cmake.in [deleted file]
doc/plugins.example/CMakeLists.txt
epan/CMakeLists.txt
wiretap/CMakeLists.txt
wsutil/CMakeLists.txt