diff options
author | José Bollo <jose.bollo@iot.bzh> | 2019-10-04 13:41:46 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-10-04 16:02:32 +0200 |
commit | 672b2ff67eefa306f29384135e92b2dcd84efcdc (patch) | |
tree | db085184d4feaf262adb475751b57d9e3c93612b /mkbuild.sh | |
parent | 9cffedba0dfcf845c34901051d24a4b967ec824d (diff) |
Add facility to compile
Change-Id: Ib4d4a03f79056ae17ba1112657eb7fe37b194527
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'mkbuild.sh')
-rwxr-xr-x | mkbuild.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mkbuild.sh b/mkbuild.sh new file mode 100755 index 0000000..e8514ab --- /dev/null +++ b/mkbuild.sh @@ -0,0 +1,15 @@ +#/bin/sh + +set -e +h=$(dirname $0) +mkdir -p $h/build +cd $h/build +[ "$1" = "-f" ] && rm -r * +cmake \ + -DCMAKE_BUILD_TYPE=Debug \ + -DCMAKE_INSTALL_PREFIX=~/.local \ + -DWITH_SYSTEMD=ON \ + -DWITH_CYNARA_COMPAT=ON \ + .. +make -j + |