Re: Target setup for unit testing (using cppunit)
Re: Target setup for unit testing (using cppunit)
- Subject: Re: Target setup for unit testing (using cppunit)
- From: Chris Hanson <email@hidden>
- Date: Fri, 25 Nov 2005 16:40:28 -0800
On Nov 25, 2005, at 8:42 AM, James Bucanek wrote:
The symbols in your application need to be accessible to the tests
in your unit test bundle both at link-time and at run-time.
You "link" your test bundle to your application by treating it like
framework. In the Other Linker Flags build setting for you test
bundle, add your application's binary to the list of frameworks:
OTHER_LDFLAGS = -framework Carbon -framework YourApplication
For this purpose you should point the BUNDLE_LOADER build setting in
your bundle target configurations (available as "Bundle Loader" in
the Linker settings collection) at your built application's executable:
BUNDLE_LOADER = $(BUILT_PRODUCTS_DIR)/YourApplication.app/Contents/
MacOS/YourApplication
This tells the linker that you're building a bundle that expects to
import some symbols from the executable that is loading it. See the
ld(1) man page, specifically the documentation for the -bundle_loader
flag.
-- Chris
_______________________________________________
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