#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_VERSION := $(shell dpkg-parsechangelog -SVersion)

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure --buildsystem=cmake -- -DBUILD_TESTING=ON -DAPP_VERSION="$(DEB_VERSION)"

override_dh_auto_test:
	QT_QPA_PLATFORM=offscreen dh_auto_test --buildsystem=cmake
