#! /usr/bin/make -f

%:
	dh $@

# override disabled by default rpath - we need to find libvcmi.so with it:
override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=Release \
		-DENABLE_DISCORD=OFF \
		-DENABLE_MMAI=ON \
		-DENABLE_GOLDMASTER=ON \
		-DBIN_DIR=games \
		-DENABLE_TEST=0

override_dh_auto_install:
	dh_auto_install --destdir=debian/vcmi-1.8
override_dh_installdocs:
	dh_installdocs --link-doc=vcmi-1.8
