dgiunchi / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Update XCode Project to 10.7 Lion #400

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The project files you supply in the XCode folder of your distribution archive 
are quite outdated. I attached an updated version that works with current OS X 
versions.

Original issue reported on code.google.com by jup...@gmail.com on 31 Jan 2012 at 12:58

Attachments:

GoogleCodeExporter commented 9 years ago
Attached are a collection of changes to the Xcode build infrastructure that 
comes with googletest. They are similar to the above but improve on it several 
respects. 

Here are my commit notes for this patch:

Updating build settings for use with Xcode 4 on 10.7+. The
 http://code.google.com/p/googletest/wiki/XcodeGuide should
 be updated:

Quick Start

Here is the quick guide for using Google Test in your Xcode project.
    1.  Download the source from the website using this command: svn checkout http://googletest.googlecode.com/svn/trunk/ googletest-read-only (or, using git clone http://git.chromium.org/external/googletest.git)
    2.  Create a new "Command Line Tool" target in your Xcode project called something like "UnitTests"
    3.  Add the gtest.xcodeproj in the googletest.../xcode/ to your project and add it's gtest.framework to both the "Target Dependencies" (via the plus button) and the "Link Binary with Libraries" build phase of "UnitTests".
    4.  Add your unit test source code to the "Compile Sources" build phase of "UnitTests"
    5. Edit the "UnitTests" executable and add an environment variable named "LD_RUNPATH_SEARCH_PATHS" with a value of "@loader_path/" (without the quotes).
    6.  Build and Go

Original comment by goo...@geheimwerk.de on 21 Oct 2012 at 5:16

Attachments: