[英]Xcode Project with multiple cpp files
I have a project directory which has multiple cpp files. 我有一个项目目录,其中包含多个cpp文件。 Each of these files has a main function tied to the respective files. 每个文件都有一个与各个文件相关的主函数。 Can i execute each of these files individually or do i have to modify some configurations in Xcode to target each of the files individually. 我可以单独执行这些文件中的每一个,还是必须修改Xcode中的某些配置以单独定位每个文件。 If so, what are steps that i have to take? 如果是这样,我必须采取什么步骤?
This is what the structure looks like in Xcode 这就是Xcode中的结构
Project1
Project1
main1.cpp
main2.cpp
main3.cpp
It's relatively straight forward to have multiple targets under the same project: 在同一个项目下拥有多个目标相对简单:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.