A replacement buildsystem for scs. Thanks to this CMake
buildsystem, scs can be easily compiled and linked by other CMake
projects.
lapack
and blas
are required to solve LPs, SOCPs, SDPs with scs.
On Ubuntu lapack
and blas
are distributed by apt
sudo apt-get install libblas-dev liblapack-dev
while on macOS, they can be easily installed with brew
brew install lapack openblas
How to use this buildsystem
-
Clone the repository
git clone git://github.com/dic-iit/scs-cmake-buildsystem
-
Build it
cd scs-cmake-buildsystem mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX:PATH=<custom-folder> ../ make make install
You may also want to compile the tests. In this case when you configure the project, please call the following command
cmake -DCMAKE_INSTALL_PREFIX:PATH=<custom-folder> -DBUILD_TESTING:ON ../
make
ctest
By default the buildsystem will compile the library as shared
. If you want to
compile it as static
, please call the following command when you configure the project
cmake -DCMAKE_INSTALL_PREFIX:PATH=<custom-folder> -BUILD_SHARED_LIBS=OFF ../
make
By default, the buildsystem will clone scs v2.1.2
. You can find the original repository in scs-cmake-buildsystem/build/_deps/scs-src
.
Materials in this repository are distributed under the following license:
All software is licensed under the MIT License. See LICENSE file for details.
The version of this CMake
project is chosen in accordance of the original project. For the time being we support only scs v2.1.2
.