# CMocka setup Download the source code of the cmocka library from here: * https://cmocka.org/ * https://cmocka.org/files/2.0/ NOTE: I use the version 2.0.0 but newer versions also could work. Copy the `include/cmocka.h` file into the `MinGW/include` directory of the C SDK. Change the current directory to the root of the CMocka source code. Compile the CMocka from source by using the following command: ```bash gcc -c src\cmocka.c -lmingw32 ``` Link the object file to a static library: ```bash ar rcs libcmocka.a cmocka.o ``` Copy the resulted `libcmocka.a` to the `MinGW/lib` directory of the C SDK.