Output path of active build target from a plugin

I need to get the path to the output executable of a build target. And it's from a plugin.
I can access the Project instance from a plugin, then I can get the path to the workspace file and extract some useful data from there. But I also need the path to the output executable built by cmake.

What are my options here?

It seems that CLion does know the path because it knows what executable to run when we press the Run or Debug button.

I would like to know more about how CLion interacts with cmake. What information does CLion have from CMakeLists.txt files and how can I access it from a plugin?

Please sign in to leave a comment.