Clion: how to get all targets Follow
I hope build RunnerAndConfigurationSettingsImpl for c, so How to get "Clion > Run/Debug configurations > Application > select a conf > click 'Target' > all targets", following is my current code,
I hope get exist targets instead of set it.RunManagerImpl rm = RunManagerImpl.getInstance(pj)
String fn = new java.io.File(curPath).name.replaceAll(/\.\w+$/, '')
RunConfiguration c = new CMakeAppRunConfiguration(pj, new CMakeAppRunConfigurationType().configurationFactories[0], fn)
BuildTargetData td = new BuildTargetData(pj.name, fn)
c.setTargetAndConfigurationData(new BuildTargetAndConfigurationData(td, "Debug"))
c.setExecutableData(new ExecutableData(td))
RunnerAndConfigurationSettingsImpl conf = new RunnerAndConfigurationSettingsImpl(rm, c, false)
conf
Please sign in to leave a comment.
What do you mean by "RunnerAndConfigurationSettingsImpl for c", what exactly do you want to achieve?
I means RunnerAndConfigurationSettings for exectuable c file.
Not sure I understand; what would the runner do?
I fix with following code:
//pj is my current project
What functionality does your plugin have?
I'm afraid I cannot help, since I don't completely understant what you are trying to achieve.