From b2264c603c941fffb129af33e0bbc63a06b2df32 Mon Sep 17 00:00:00 2001 From: Austin Michael Blevins Date: Fri, 20 Oct 2023 14:35:51 -0400 Subject: [PATCH] Added bash scripts to compile using debug or production flags in cmake --- .gitignore | 3 ++- compile_debug.bash | 2 ++ compile_production.bash | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 compile_debug.bash create mode 100644 compile_production.bash diff --git a/.gitignore b/.gitignore index 733dc353..af49a6b0 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ !version.txt !src/**.f90 !ctem/**.py -!cmake/Modules/*.cmake \ No newline at end of file +!cmake/Modules/*.cmake +!*.bash diff --git a/compile_debug.bash b/compile_debug.bash new file mode 100644 index 00000000..c1102cd7 --- /dev/null +++ b/compile_debug.bash @@ -0,0 +1,2 @@ +cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug +cmake --build build diff --git a/compile_production.bash b/compile_production.bash new file mode 100644 index 00000000..bc4e8a87 --- /dev/null +++ b/compile_production.bash @@ -0,0 +1,2 @@ +cmake -B build -S . +cmake --build build