Clion:如何正确地将图像,xml,资源...添加到cmake

Pab*_*uez 4 c++ cmake clion

我尝试了复制,但没有在每个版本上更新

ipa*_*ipa 6

为此,我使用了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