How to add another main executable file in Xcode?

I have a few questions about Xcode.How do I add another main project to my Xcode without opening another projectI mean another main executable file on Xcode and it’s able to build and runEvery time I want to write another simple program
I always have to open another or a whole new project
And l just started out. Because every time l want to create a new file when coding in C++ , l instead open a whole new project.

Every app you write is its own project. So there is now going round that. New App, New Project.