技术经理说,可以用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
学习cmake http://xwz.me/wiki/doku.php?id=cmake 碰到的一些问题: 1.You have changed variables that require your cache to be deleted死循环 解决方法:CMakeList.txt中include包含的子模板含有环境变量传入的标示且存在ADD_SUBDIRECTORY子目录控制,此时需要将子模板放置在CMakeList.txt的头部中 CMAKE的使用 http://blog.csdn.net