CMake生成Visual Studio解决方案后如何使其执行某些脚本 [英] How to make CMake execute some script after it generates visual studio solution

查看:119
本文介绍了CMake生成Visual Studio解决方案后如何使其执行某些脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用CMake构建项目。我想在CMake生成解决方案后执行一些脚本(例如python脚本),这样我就不必每次都手动执行它。
我正在使用Cmake 2.8。有人知道Cmake为此目的提供的任何用户挂钩或信息吗?

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?

推荐答案

如果要在执行过程中执行命令 CMake的构建然后使用 execute_process

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

这篇关于CMake生成Visual Studio解决方案后如何使其执行某些脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆