• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I use multiple targets in a project?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I use multiple targets in a project?


  • Subject: Re: How do I use multiple targets in a project?
  • From: Rua Haszard Morris <email@hidden>
  • Date: Wed, 25 Jun 2008 14:56:05 +1200

One setup would be:
 - 1 project (e.g. mycltools.xcodeproj)
 - a "static library" target for the shared classes code
 - "shell tool" targets for each executable

Each of the command line tool targets would have its own main.cpp, and would link to (and depend on) the library target.

On Jun 25, 2008, at 2:46 PM, Brian OBrien wrote:

I make a lot of C++ command line utilities based on a set of classes I've developed.
Between utilities usually the only thing that changes is main.
So how can I have more than one main.cpp in a project, one for each executable I want to produce?


Tia.


<bobrien.vcf> _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >How do I use multiple targets in a project? (From: Brian OBrien <email@hidden>)

  • Prev by Date: How do I use multiple targets in a project?
  • Next by Date: Link Errors
  • Previous by thread: How do I use multiple targets in a project?
  • Next by thread: Re: How do I use multiple targets in a project?
  • Index(es):
    • Date
    • Thread