From ee231792fe8ec4d4f26ad81778ca5ae6187e46be Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 27 Nov 2022 23:11:32 +0100 Subject: Add make_kdm.cc example. --- run/examples/make_kdm | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 run/examples/make_kdm (limited to 'run/examples') diff --git a/run/examples/make_kdm b/run/examples/make_kdm new file mode 100755 index 00000000..2358696a --- /dev/null +++ b/run/examples/make_kdm @@ -0,0 +1,12 @@ +#!/bin/bash + +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:build/src +if [ "$1" == "--debug" ]; then + shift + gdb --args build/examples/make_kdm "$@" +elif [ "$1" == "--valgrind" ]; then + shift + valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/examples/make_kdm "$@" +else + build/examples/make_kdm "$@" +fi -- cgit v1.2.3