#!/bin/bash
cd cmake-build &&
rm -rf * 
#CXXFLAGS+='-g -pg' cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/MMC/bs &&
CXXFLAGS+='-g' cmake .. -DIS_OLPC=ON -DOPTIMIZE=ON -DCMAKE_INSTALL_PREFIX:PATH=/media/MMC/bs &&
make &&
echo "Installing binaries" &&
su -c "make install" #&&
#echo "Installing and Unpacking BaseData to home directory" &&
#/media/MMC/bs/bin/LostPixels -q
