Add 'static C++ library' target of ProjectA as framework to ProjectB in Xcode 4
Add 'static C++ library' target of ProjectA as framework to ProjectB in Xcode 4
- Subject: Add 'static C++ library' target of ProjectA as framework to ProjectB in Xcode 4
- From: Oleksii Taran <email@hidden>
- Date: Thu, 23 Feb 2012 17:38:18 +0200
Hello
I'm not sure whether this was discussed earlier. Suppose I have
project called ProjectA with target 'C++ library (statically linked)'
called TargetA. Now if I want to add TargetA as framework to project
ProjectB with target TargetB, I follow these steps:
1. Add ProjectA's project file to group 'Frameworks' in ProjectB;
2. Add TargetA as 'Target Dependencies' to TargetB;
3. Add libTargetA.a as 'Link Binary With Libraries' to TargetB.
Now if I include any header file from TargetA as
#include <TargetA/header.hpp>
in any source file in ProjectB, Xcode complains about absence of this
header file. What am I doing wrong?
Thanks in advance
--
Oleksii
_______________________________________________
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