Conan.io recipe for Modelica tools' FMUComplianceChecker.
-
Add remote to conan's package remotes
$ conan remote add sintef https://artifactory.smd.sintef.no/artifactory/api/conan/conan-local
-
Using conanfile.txt and cmake in your project.
Add conanfile.txt:
[options] eprosima-fmu-compliance-checker:with_tools=True [tool_requires] cmake/[>=3.25.0] fmu-compliance-checker/2.0.4@sintef/stable [layout] cmake_layout [generators] CMakeDeps CMakeToolchain VirtualBuildEnv
A command line tool
fmuCheck.linux64
orfmuCheck.win64
is available to check FMUs when virtual environment is active. There is also a convenience executable targetFMUComplianceChecker::executable
for CMake users that can be used, as well asadd_fmu_compliance_check(testName fmuPath)
, which adds anadd_test()
using the executable target.find_package(FMUComplianceChecker REQUIRED CONFIG) add_fmu_compliance_check("MyFMU_is_compliant" ${PATH_TO_FMU})
Option | Allowed values | Default |
---|---|---|
fPIC | [True, False] | True |
To build and run tests, set tools.build:skip_test=False
in global.conf
, in [conf]
or
--conf
as part of conan install
.