basp-group / sopt

SOPT: Sparse OPTimisation.
http://basp-group.github.io/sopt/
GNU General Public License v2.0
21 stars 9 forks source link

Features/cmake #4

Closed mdavezac closed 9 years ago

mdavezac commented 9 years ago

Adds cmake to sopt. Compilation requires cmake on top of the usual sopt dependencies.

Assuming fftw and others are in default unix locations (/usr or /usr/local...), then compilation is simply:

cd path/to/sopt/source
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
make
make install

cmake will take various options if fftw, blas, and other libraries are in non-standard locations.