I introduced a little patch to the cmake scripts in order to generate both shared and static library. It would be nice doing something similar at upstream level, for instance by changing the related option use. Just my 2cents. -- Francesco P. Lovergine