From a798ac73935bea0767d397cfb929fc05d5c94e05 Mon Sep 17 00:00:00 2001 From: paulfd Date: Sat, 24 Aug 2019 15:32:17 +0200 Subject: [PATCH] Configuration scripts --- scripts/debug_clang.sh | 3 +++ scripts/debug_gcc.sh | 3 +++ scripts/release_clang.sh | 3 +++ scripts/release_gcc.sh | 3 +++ 4 files changed, 12 insertions(+) create mode 100755 scripts/debug_clang.sh create mode 100755 scripts/debug_gcc.sh create mode 100755 scripts/release_clang.sh create mode 100755 scripts/release_gcc.sh diff --git a/scripts/debug_clang.sh b/scripts/debug_clang.sh new file mode 100755 index 00000000..faff568f --- /dev/null +++ b/scripts/debug_clang.sh @@ -0,0 +1,3 @@ +#!/bin/sh +script_dir="$(dirname "$0")" +cmake -D CMAKE_C_COMPILER=clang-9 -D CMAKE_CXX_COMPILER=clang++-9 -D CMAKE_BUILD_TYPE=Debug -S "$script_dir/.." -B . \ No newline at end of file diff --git a/scripts/debug_gcc.sh b/scripts/debug_gcc.sh new file mode 100755 index 00000000..e4e55e07 --- /dev/null +++ b/scripts/debug_gcc.sh @@ -0,0 +1,3 @@ +#!/bin/sh +script_dir="$(dirname "$0")" +cmake -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -D CMAKE_BUILD_TYPE=Debug -S "$script_dir/.." -B . \ No newline at end of file diff --git a/scripts/release_clang.sh b/scripts/release_clang.sh new file mode 100755 index 00000000..70a007d8 --- /dev/null +++ b/scripts/release_clang.sh @@ -0,0 +1,3 @@ +#!/bin/sh +script_dir="$(dirname "$0")" +cmake -D CMAKE_C_COMPILER=clang-9 -D CMAKE_CXX_COMPILER=clang++-9 -D CMAKE_BUILD_TYPE=Release -S "$script_dir/.." -B . \ No newline at end of file diff --git a/scripts/release_gcc.sh b/scripts/release_gcc.sh new file mode 100755 index 00000000..25c091c3 --- /dev/null +++ b/scripts/release_gcc.sh @@ -0,0 +1,3 @@ +#!/bin/sh +script_dir="$(dirname "$0")" +cmake -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -D CMAKE_BUILD_TYPE=Release -S "$script_dir/.." -B .