diff --git a/CMakeLists.txt b/CMakeLists.txt index bced6c0932..093c5c2106 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3891,6 +3891,12 @@ install(EXPORT WiresharkTargets EXCLUDE_FROM_ALL ) +# This isn't strictly needed but it makes working around debhelper's +# cleverness a lot easier. +add_custom_target(install-headers + COMMAND ${CMAKE_COMMAND} -DCOMPONENT=Development -P cmake_install.cmake +) + if (DOXYGEN_EXECUTABLE) # API reference # We don't have a good way of tracking dependencies, so we simply diff --git a/packaging/debian/rules b/packaging/debian/rules index 053340c187..0b40837102 100755 --- a/packaging/debian/rules +++ b/packaging/debian/rules @@ -55,6 +55,7 @@ override_dh_strip: override_dh_auto_install: dh_auto_install + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp -C $(CURDIR)/obj-* install-headers rm -f debian/*.shlibs rm -rf $(CURDIR)/debian/tmp/usr/share/wireshark/COPYING mkdir -p $(CURDIR)/debian/tmp/etc/wireshark/