更新时间:2022-05-01 04:25:29
我自己找到了答案(我的意思是询问好人):
I found the answer by myself (I mean asking the good person) :
为每种类型的构建文件使用2个单独的构建目录。这将确保每个构建目录具有正确的构建文件和生成的文件供其使用。
Use 2 separate build directories for each type of build files. This will ensure each build directory has the correct build files and generated files for its use.
在add_executable()命令中,除了源文件还包括头文件和生成的标题以便显示在Xcode中。
In the add_executable() command, in addition to the source files also include the headers and generated headers for those to show up in Xcode.