Allow disabling of shared libs at all
Some embedded compilers cannot handle shared libs.
I know that for just building static lib I can set
WITH_STATIC_LIB and use
However it breaks
make install when I want to create for example tarballs with lib/ and include/ in them, to being used as static lib.
I've made some changes in our fork that add
WITH_SHARED_LIB that by default works like vanilla Cmocka, but allows to disable shared libs building so
make install works. But I don't know if I just misuse Cmocka or it's really needed.
There are my changes:
If it's needed I can create merge request with my changes.