为此,我使用了configure_fileCmake中的命令,因此将文件复制到构建目录中.每次修改文件时都会执行此操作.
configure_file(config.xml config.xml COPYONLY)
Run Code Online (Sandbox Code Playgroud)
http://www.cmake.org/cmake/help/v3.0/command/configure_file.html
| 归档时间: |
|
| 查看次数: |
2370 次 |
| 最近记录: |