I am looking for a solution in CLion IDE. While practicing some programs I noticed in CLion that I could only use one main c file for executing project. I know that project can have only on main function but in Eclipse IDE for C/C++ I have a comfortable facility which allows me to have multiple main source files (i.e. with main function) and I can run each particular main file by right clicking on it and choose 'Run as'. But in Jet Brains unlike IDEA (Where we can choose run configurations by configuring main class in run configurations) Clion doesn't have this facility so far as I know. Please correct me if I'm wrong. and let me know how I can use multiple source files (which has main function) in same project and will be able execute desired source file when ever I want in the same project.