How to upload file other than main.cpp in the src folder

I want to upload an example file (That came with the library, (a .ino file)) to Arduino Uno. To upload that file I need to first add a tag for src_dir in the platformio.ini file and set the tag to equal to the example folder.

That sets the directory to look for when building and uploading the file. However, I’m not able to get it to upload the file with name other than main.cpp

Let us say that rather than changing the src_dir, I copy the example.ino file to the src folder. I’m still left with telling the compiler to not build the main.cpp file, but the new file that I have just shifted. How to set the file to be compiled and uploaded.