在CMakeListis.txt中添加改文件的文件名配置,具体怎么添加参考下面这张图
这
#include<stdio.h> int main() { printf("hello world!") return 0; }
同问啊~