diff options
Diffstat (limited to 'cmake/modules/FindWireshark.cmake')
-rw-r--r-- | cmake/modules/FindWireshark.cmake | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cmake/modules/FindWireshark.cmake b/cmake/modules/FindWireshark.cmake new file mode 100644 index 0000000000..27259d3c3d --- /dev/null +++ b/cmake/modules/FindWireshark.cmake @@ -0,0 +1,25 @@ +# Locate the Wireshark library. +# +# This file is meant to be copied into projects that want to use Wireshark. +# It will search for WiresharkConfig.cmake, which ships with Wireshark +# and will provide up-to-date buildsystem changes. Thus there should not be +# any need to update FindWiresharkVc.cmake again after you integrated it into +# your project. +# +# This module defines the following variables: +# Wireshark_FOUND +# Wireshark_VERSION_MAJOR +# Wireshark_VERSION_MINOR +# Wireshark_VERSION_PATCH +# Wireshark_VERSION +# Wireshark_VERSION_STRING +# Wireshark_INSTALL_DIR +# Wireshark_PLUGIN_INSTALL_DIR +# Wireshark_LIB_DIR +# Wireshark_INCLUDE_DIR +# Wireshark_CMAKE_MODULES_DIR + +find_package(Wireshark ${Wireshark_FIND_VERSION} QUIET NO_MODULE PATHS $ENV{HOME} /opt/Wireshark) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(WiresharkCONFIG_MODE) |