FMU4cpp is a CMake template repository that allows you to easily create cross-platform FMUs compatible with FMI 2.0 for Co-simulation using C++.
The framework generates the required modelDescription.xml
and further packages
the necessary content into a ready-to-use FMU archive.
- Change the value of the
modelIdentifier
variable inCMakeLists.txt
to something more appropriate. - Edit the content of model.cpp.
- Build.
An FMU named <modelIdentifier>.fmu
is now located in your build folder.
Cross-compilation (64-bit linux/windows) occurs automatically when you push your changes to GitHub.
Simply rename the produced model.zip
to <modelName>.fmu
.
Such easy, such wow.
- C++17 compiler
- CMake >= 3.15