build(examples): Deduplicate code into add_example helper

This commit is contained in:
Dennis Klein
2023-03-06 14:01:53 +01:00
committed by Dennis Klein
parent 8960ce9416
commit 3781495d29
13 changed files with 204 additions and 507 deletions

View File

@@ -12,12 +12,9 @@ if [[ $1 =~ ^[a-z]+$ ]]; then
transport=$1
fi
if [[ $2 =~ ^[a-z]+$ ]]; then
multipart=$2
fi
if [[ $3 =~ ^[0-9]+$ ]]; then
numParts=$3
if [[ $2 =~ ^multipart$ ]]; then
multipart="true"
numParts=2
fi
session="$(@CMAKE_BINARY_DIR@/fairmq/fairmq-uuid-gen -h)"