run cmake when adding file in eclipse

2019-08-02 15:50发布

问题:

I have a cmake build script which collects all the files in my eclipse project source directory. The problem is, that if I add a file, I should rerun cmake to collect this file and add it to the build scripts. Is there a possibility to trigger this automatically from eclipse when adding a file?