技术经理说,可以用Cmake当中的add_custom_command,add_custom_target命令来使用. 我初次研究了下,add_custom_command应该用官方文档中说明的第二种形式: The second signature adds a custom command to a target such as a library or executable. This is useful for performing an operation before or after…
大部分人第一次看到NSIS脚本都是一脸懵逼的.因为它这个脚本的结构乍一看上去就非常奇怪,不作说明的话是看不懂的. 编写脚本命令的时候要非常注意,命令要按照规定写在脚本中不同的段落里,也就是说,命令的先后顺序非常重要. 下面提供了一个标准的简单的脚本例子,使用注释说明了每个命令的具体作用,大家如果想快速上手编译出一个安装包,直接照着这个例子一行行抄就行了. # NSIS Modern User Interface# 关于 Modern 风格界面的命令和宏定义需要参考 NSIS目录下\Docs\Mo…
public class Test { /** * @param args * @throws IOException */ public static void main(String[] args) throws IOException { // TODO Auto-generated method stub Process process = Runtime.getRuntime().exec("cmd"); InputStream is = process.getInput…