#!/bin/bash

echo "OpenCV installation by learnOpenCV.com"

basefolder=~/usr


cmake -D CMAKE_BUILD_TYPE=RELEASE \
            -D CMAKE_INSTALL_PREFIX=$basefolder \
        -D INSTALL_C_EXAMPLES=ON \
        -D WITH_QT=ON \
        -D WITH_OPENGL=ON \
        -DBUILD_SHARED_LIBS=OFF \
        -D BUILD_EXAMPLES=ON \
            ..

#            -D WITH_TBB=ON \
#            -D WITH_V4L=ON \

# make
# make install
