The project depends only on scs
and Eigen3. Please install scs
using the cmake-build
system provide in this repository.
The documentation is available online at the accompanying website.
-
Clone the repository
git clone https://github.com/GiulioRomualdi/scs-eigen
-
Build it
cd scs-eigen mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX:PATH=<custom-folder> ../ make make install
-
Add the following environmental variable
ScsEigen_DIR=/path/where/you/installed/
scs-eigen provides native CMake
support which allows the library to be easily used in CMake
projects.
scs-eigen exports a CMake target called ScsEigen::ScsEigen
which can be imported using the find_package
CMake command and used by calling target_link_libraries
as in the following example:
cmake_minimum_required(VERSION 3.0)
project(myproject)
find_package(ScsEigen REQUIRED)
add_executable(example example.cpp)
target_link_libraries(example ScsEigen::ScsEigen)
Materials in this repository are distributed under the following license:
All software is licensed under the MIT License. See LICENSE file for details.