Skip to content

Commit

Permalink
Add compile files
Browse files Browse the repository at this point in the history
  • Loading branch information
Borja Lorente committed Nov 7, 2016
1 parent 2c0d24b commit 8dc207f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@
*.exe
*.out
*.app

# Build files
bin/
26 changes: 26 additions & 0 deletions dists/compile_gcc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/bash

if [[ $( pwd ) == *"/dists" ]]
then
cd ..
fi
ROOTDIR=$( pwd )

if [[ -d "bin" ]]
then
rm -rf bin
fi

mkdir bin
COMPILEDIR="$ROOTDIR/bin"

cd $COMPILEDIR
cmake -G "Unix Makefiles" ..
cmake --build .

echo -n "Run tests? [y/n]: "
read repl
if [ $repl == "y" ] ; then
cd tests
./tests
fi

0 comments on commit 8dc207f

Please sign in to comment.