FMI4cpp can be installed using the conan package manager.
To get the conan recipe for FMI4cpp, clone https://github.com/markaren/FMI4cpp-conan and run:
conan create . FMI4cpp/testingAdditionally, you can use it as a submodule in your own CMake project.