Added helper scripts to configure, compile and install using cmake
This commit is contained in:
1 parent
d637e4497b
commit
0abbb8133a
3 files changed
+20
No files matched your search
@@ -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 ./
|
||||
Reference in new issue
Block a user