Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1014 Bytes

File metadata and controls

37 lines (24 loc) · 1014 Bytes

BUILDING

For building FMI4cpp, you are can use either conan or apt-get for getting the required dependencies.

conan

Install conan and run conan install:

conan install . -s build_type=Debug --install-folder=cmake-build-debug
conan install . -s build_type=Release --install-folder=cmake-build-release

On Linux you should add -s compiler.libcxx=libstdc++11 to the command.

When using conan, set FMI4CPP_USING_CONAN=ON.

apt-get
Linux:~/$ sudo apt-get install libzip-dev libboost-dev libboost-filesystem-dev

Running examples/tests

The examples are built by default. To change this pass -DFMI4CPP_BUILD_EXAMPLES=OFF to CMake. Test are on the other hand not built by default. To change this pass -DFMI4CPP_BUILD_TESTS=ON to CMake.

To run the tests you will need an additional dependency:

conan

Dependency should already be fulfilled..

apt-get
Linux:~/$ sudo apt-get install libboost-test-dev