Building only library with cmake