See cmims/src/mims_unit.h
for function API, and cmims/tst/demo.c
for usage examples.
mkdir data && cd data
Download mims_unit.zip
(ask Aryton) and unzip in cmims/data
cd cmims/tst && make clean
./demo
Run from the root directory, the build system will be in build
folder.
# Generate the build system
cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -S . -B ./build -T host=x64 -A x64
Then compile using the build system, the compiled binary will be in build/Debug
folder.
cmake --build ./build --config Debug --target ALL_BUILD -j 14 --
To compile for release, replace the Debug
word in the above two commands with Release
, the compiled binary will be in build/Release
folder.
Modify main()
in tst/demo.c