The contribution of supernova remnants to the galactic cosmic ray spectrum