forked from osmocom/wireshark
d0b97a420d
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>
20 lines
739 B
CMake
20 lines
739 B
CMake
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@)
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
set_and_check(Wireshark_LIB_DIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@")
|
|
set_and_check(Wireshark_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@/wireshark")
|
|
if(Wireshark_PLUGINS_ENABLED)
|
|
set_and_check(Wireshark_PLUGIN_INSTALL_DIR "@PACKAGE_PLUGIN_INSTALL_VERSION_LIBDIR@")
|
|
endif()
|
|
set_and_check(Wireshark_EXTCAP_INSTALL_DIR "@PACKAGE_EXTCAP_INSTALL_LIBDIR@")
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/WiresharkTargets.cmake")
|
|
|
|
check_required_components(Wireshark)
|