Custom run command

Is there a way to define a custom run command for a project? One of the projects I'm working on uses MPI.  Compiling with MPI is easy enough through cmake.  But to run the project I have to go to the command line and invoke the mpi-runtime.

Basically I want to be able to tell CLion to run my program with

mpi_run -np 8 ./ProgramName

instead of


1 comment
Comment actions Permalink

Actually, you should be able to run mpi_run by selecting it in the "Executable" field of a Run Configuration editor.


Please sign in to leave a comment.