Skip to content
Snippets Groups Projects
Commit 267b3c1e authored by Orestis Afedulidis's avatar Orestis Afedulidis
Browse files

added missing buildCmakeGCC shell script

parent baf6032e
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
_GCC=$(which gcc)
_GXX=$(which g++)
if [ ! -d build ]
then
mkdir build
fi
if [ ! -d bin ]
then
mkdir bin
fi
if [ ! -d lib ]
then
mkdir lib
fi
cd build
echo "INFO: using $_GCC as C compiler"
echo "INFO: using $_GXX as C++ compiler"
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=.. -DBUILD_SHARED_LIBS=ON -DCMAKE_C_COMPILER="$_GCC" -DCMAKE_CXX_COMPILER="$_GXX"
make
make install
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment