1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/usr/bin/make -f
# DH_VERBOSE := 1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
CMAKE_EXTRA_FLAGS += -DDEBIAN_BUILD=1 \
-DLINK=shared
# Build time test requires https://github.com/philsquared/Catch
# -DBUILD_TESTING=ON \
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- $(CMAKE_EXTRA_FLAGS)
### When overriding auto_test make sure DEB_BUILD_OPTIONS will be respected
#override_dh_auto_test:
#ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# do_stuff_for_testing
#endif
|