Added helper scripts to configure, compile and install using cmake

This commit is contained in:
abdelrahman committed 2022-09-08 23:56:01 +01:00
1 parent d637e4497b
commit 0abbb8133a
3 files changed
+20

No files matched your search

Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
cmake --build build
Vendored Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
BUILD_TYPE=""
if [[ "$1" == "Release" ]] || [[ "$1" == "RELEASE" ]] || [[ "$1" == "release" ]]
then
BUILD_TYPE="Release"
else
BUILD_TYPE="Debug"
fi
cmake -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DCMAKE_INSTALL_PREFIX="dist" -S . -B build -G "Ninja"
rm compile_commands.json
cp build/compile_commands.json ./
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
cmake --install build