Skip to content

ami-iit/scs-cmake-buildsystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scs CMake Buildsystem version-2.1.2 Size

Overview

A replacement buildsystem for scs. Thanks to this CMake buildsystem, scs can be easily compiled and linked by other CMake projects.

Dependencies

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

Usage

How to use this buildsystem

  1. Clone the repository

    git clone git://github.com/dic-iit/scs-cmake-buildsystem
    
  2. Build it

    cd scs-cmake-buildsystem
    mkdir build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX:PATH=<custom-folder> ../
    make
    make install
    

Some Interesting Cmake options

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.

License

Materials in this repository are distributed under the following license:

All software is licensed under the MIT License. See LICENSE file for details.

FAQ

How the version is chosen?

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.