modelcore lib cmake build