![João Valverde](/assets/img/avatar_default.png)
Fixes "make install" to be relocatable using DESTDIR. For that we cannot use an absolute path as intallation directory target. This is useful mostly to implement packaging using CPack. It is a bit awkward to configure a default CMAKE_INSTALL_PREFIX using WiresharkConfig.cmake but it seems to be working OK. The previous non-relocatable behaviour may still be useful. It is relegated to a custom "copy_plugin" target.
22 lines
870 B
CMake
22 lines
870 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@)
|
|
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")
|
|
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)
|