Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to install CGAL into MacOS and compile programs in Xcode?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How to install CGAL into MacOS and compile programs in Xcode?


Chronological Thread 
  • From: Антон Серебряков <>
  • To: cgal-discuss <>
  • Subject: Re: [cgal-discuss] How to install CGAL into MacOS and compile programs in Xcode?
  • Date: Tue, 9 Mar 2010 16:10:36 +0300
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=GXdDVEkH4MbGkyNN7cEbOpASqJ7IhV+IdcDApXsXch0Td9X2bwroTQ+OaEYDViLlSq uySSanBSXV4MdYEirxhHHIAdIDNH4HJaqXFZXn/NCb38JQL/ZH9lL+ED5WL67/ue7m/I c2w4qo6aFYWNxuvh7qn6rQ1ixPjnbavfW3/LM=

2010/3/9 Stephane Tayeb <>
Hi,

I personnaly proceed as follows:

Installation: same as you

Compile in Xcode:

1. Go to example directory (e.g. examples/Voronoi_diagram_2/)
2. Generate Xcode project using cmake: $cmake -GXcode .
3. Open Xcode project
4. Compile using Xcode (note: I change compiler from gcc-4.0 to gcc-4.2 in Xcode)

NB: you could also have a look at this script 'scripts/cgal_create_cmake_script' which could create a CMakeLists.txt for your own project if you don't want to start from an existing example folder.

Best,
Stéphane.

 Thanx, Stephane!

One thing - there is need to change wirking directory.

Choose in menu: "Project" -> "Edit Active Executable ..." ->
"Set the working direcoty to:"
+ "Project directory"

That's all! :)



Archive powered by MHonArc 2.6.16.

Top of Page