rvthtool/debian/rules
David Korth d0498b9e7d [debian] rules: Explicitly set QT_VERSION=5.
CMake failed to find Qt on the Launchpad build server for Ubuntu 18.04
for some reason. (...though it worked on 16.04?)

(cherry picked from commit 99988fb273)

Conflicts:
	debian/changelog
2025-06-17 00:43:18 -04:00

26 lines
548 B
Makefile
Executable File

#!/usr/bin/make -f
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DESTDIR := $(CURDIR)/debian/rvthtool
%:
dh $@ --parallel -Bbuild
CMAKE_OPTIONS := \
-DCMAKE_BUILD_TYPE=Release \
-DSPLIT_DEBUG=OFF \
-DENABLE_LTO=OFF \
-DQT_VERSION=5
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
CMAKE_OPTIONS += -DBUILD_TESTING=ON
endif
override_dh_auto_configure:
dh_auto_configure -- $(CMAKE_OPTIONS)
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
CTEST_OUTPUT_ON_FAILURE=1 $(MAKE) -C build test
endif