diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
commit | e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch) | |
tree | 68cb5ef9081156392f1dd62a00c6ccc1451b93df /WiresharkConfig.cmake.in | |
parent | Initial commit. (diff) | |
download | wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip |
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'WiresharkConfig.cmake.in')
-rw-r--r-- | WiresharkConfig.cmake.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/WiresharkConfig.cmake.in b/WiresharkConfig.cmake.in new file mode 100644 index 00000000..d8981b8b --- /dev/null +++ b/WiresharkConfig.cmake.in @@ -0,0 +1,28 @@ +set(Wireshark_MAJOR_VERSION @PROJECT_MAJOR_VERSION@) +set(Wireshark_MINOR_VERSION @PROJECT_MINOR_VERSION@) +set(Wireshark_PATCH_VERSION @PROJECT_PATCH_VERSION@) +set(Wireshark_VERSION "@PROJECT_VERSION@") + +set(Wireshark_PLUGINS_ENABLED @HAVE_PLUGINS@) +set(Wireshark_PLUGIN_LIBDIR "@PLUGIN_INSTALL_VERSION_LIBDIR@") + +@PACKAGE_INIT@ + +set_and_check(Wireshark_INSTALL_PREFIX "${PACKAGE_PREFIX_DIR}") +set_and_check(Wireshark_LIB_DIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@") +set_and_check(Wireshark_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@/wireshark") +# +# set_and_check() cannot be used with directories that may or may not exist. +# If no plugins or extcaps are built the respective directories will not exist in the target +# system and set_and_check() and therefore find_package() will fail with a FATAL_ERROR, +# which is not helpful because the variable is correct, it's just that the empty directories +# were not created (also correctly, empty directories are just noise). +# +if(Wireshark_PLUGINS_ENABLED) + set(Wireshark_PLUGIN_INSTALL_DIR "@PACKAGE_PLUGIN_INSTALL_VERSION_LIBDIR@") +endif() +set(Wireshark_EXTCAP_INSTALL_DIR "@PACKAGE_EXTCAP_INSTALL_LIBDIR@") + +include("${CMAKE_CURRENT_LIST_DIR}/WiresharkTargets.cmake") + +check_required_components(Wireshark) |