I have adapted my old "run target" emacs package to work with cmake-build.
You can have a look here file rt-cmake-build.el
It works flawlessly with my wip branch of cmake-build (with two alternative for run and debug that takes command and working dir as input) here
I think the integration should be done easily, but without having to redefine you function, just add one version with command and working dir as argument, and a helper that call this function with default parameter to work as now in master.
Also I hardcoded the generator, which is not a good idea, but for testing only. Since I read the target from a codeblock file, I need it to be generated (only once) maybe a good solution is to add one call to cmake to generate such file ?
you have to include rt-cmake-build.el to your emacs configuration to test, then call rt-run or rt-run-debug and have auto completion of available programs.
Feel free to comment so I can improve the package/integration (you can also simple add this functionality to cmake-build from my code, in this case reference will be appreciated)
I have adapted my old "run target" emacs package to work with cmake-build. You can have a look here file rt-cmake-build.el It works flawlessly with my wip branch of cmake-build (with two alternative for run and debug that takes command and working dir as input) here I think the integration should be done easily, but without having to redefine you function, just add one version with command and working dir as argument, and a helper that call this function with default parameter to work as now in master. Also I hardcoded the generator, which is not a good idea, but for testing only. Since I read the target from a codeblock file, I need it to be generated (only once) maybe a good solution is to add one call to cmake to generate such file ?
you have to include rt-cmake-build.el to your emacs configuration to test, then call rt-run or rt-run-debug and have auto completion of available programs.
Feel free to comment so I can improve the package/integration (you can also simple add this functionality to cmake-build from my code, in this case reference will be appreciated)