#!/usr/bin/make -f

%:
	dh $@ -Scmake+ninja

override_dh_auto_configure:
	dh_auto_configure -- \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DBUILD_SHARED_LIBS=1

# disable tests on slow arches
ifeq (,$(filter-out amd64,$(DEB_HOST_ARCH_CPU)))
override_dh_auto_test:
	dh_auto_test
else
override_dh_auto_test:
endif
