ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-commits: [Wireshark-commits] master d0b97a4: CMake: Modernize config-file package support

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 25 Aug 2018 18:07:28 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=d0b97a420d557042938ac5d6bf075fcd84df9371
Submitter: "João Valverde <j@xxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

d0b97a4 by João Valverde (joao.valverde@xxxxxxxxxxxxxxxxxx):

    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@xxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: João Valverde <j@xxxxxx>
    

Actions performed:

    from  e75905a   CMake: Add dumpcap group option to installation
     add  d0b97a4   CMake: Modernize config-file package support


Summary of changes:
 CMakeLists.txt                                | 45 +++++++++++++++++---
 WiresharkConfig.cmake.in                      | 19 +++++++++
 cmake/modules/FindWireshark.cmake             | 26 ------------
 cmake/modules/WiresharkConfig.cmake.in        | 25 -----------
 cmake/modules/WiresharkConfigVersion.cmake.in | 10 -----
 doc/plugins.example/CMakeLists.txt            | 27 +++---------
 epan/CMakeLists.txt                           | 60 ++++++++++++++++-----------
 wiretap/CMakeLists.txt                        |  1 +
 wsutil/CMakeLists.txt                         |  1 +
 9 files changed, 102 insertions(+), 112 deletions(-)
 create mode 100644 WiresharkConfig.cmake.in
 delete mode 100644 cmake/modules/FindWireshark.cmake
 delete mode 100644 cmake/modules/WiresharkConfig.cmake.in
 delete mode 100644 cmake/modules/WiresharkConfigVersion.cmake.in