我试过复制但没有在每次构建时更新
最佳答案
为此,我在 Cmake 中使用了 configure_file
命令,因此文件被复制到构建目录。每次修改文件时都会这样做。
configure_file(config.xml config.xml COPYONLY)
http://www.cmake.org/cmake/help/v3.0/command/configure_file.html
关于c++ - Clion:如何正确地将图像、xml、资源...添加到 cmake,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30241988/