cxform with CMAKE for static library