Grounded mounting slot in Eagle
Perhaps this guide from Autodesk titled "What you didn’t know about EAGLE: Slotted Holes" could help:
https://www.autodesk.com/products/eagle/blog/what-you-didnt-know-about-eagle-slotted-holes/