How to make CMake execute some script after it generates visual studio solution

孤者浪人 提交于 2020-01-03 07:23:19

问题


I am using CMake to build a project. I want to execute some script(say python script) after CMake is done generating the solution so that I won't have to execute it manually everytime. I am using Cmake 2.8. Does anybody know any userhook or something which Cmake provides for this purpose?


回答1:


If you want to execute a command during CMake's build then use execute_process.



来源:https://stackoverflow.com/questions/11551779/how-to-make-cmake-execute-some-script-after-it-generates-visual-studio-solution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!