title: Create multiple executables in XCode
body: <p>There are various versions of this question but I havnt been able to find what Im looking for.</p>
  
  <p>I have a bunch of cpp files in the OpenCV samples directory. I would like to create a project in XCode that can compile and build all the executables. I opened a new project, added all the sample source files, included the correct header files and the right link paths and then got stuck because I dont know how to make the project build and link executables for each relevant cpp file. Im guessing Im doing this completely wrong so any help would be appreciated.</p>