Installation and Testing
Installation
- Download the library from
dae-cpp
repository on GitHub: https://github.com/dae-cpp/dae-cpp. - The solver is header-only, with all dependencies included. There is no need to pre-compile the sources, just copy
dae-cpp
,Eigen
, andautodiff
folders into your project. - Optionally: examples and tests can be compiled using CMake (see Testing).
Testing
For unit and integration testing, dae-cpp
uses GoogleTest, Google Testing and Mocking Framework, which can be downloaded with dae-cpp
as a submodule. If you already have cloned the project without --recurse-submodules
option, you can initialize and update googletest
submodule by running
git submodule update --init
Then build and run the tests:
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
ctest
Note that you don’t have to download and run the tests. The project is tested automatically on Ubuntu (gcc
and clang
compilers) and Windows (MSVC compiler) via GitHub Actions.