Wolf-Rayet stars, OB associations, and the origin of galactic cosmic rays