Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] How to install CGAL into MacOS and compile programs in Xcode?
Chronological Thread
- From: Stephane Tayeb <>
- To:
- Subject: Re: [cgal-discuss] How to install CGAL into MacOS and compile programs in Xcode?
- Date: Tue, 09 Mar 2010 11:27:00 +0100
Serebryakov wrote:
How to install CGAL into MacOS and compile programs in Xcode?
Install.
1. Donwload CGAL-3.5.1.
2. Unpack.
3. Run: "cmake ." in CGAL-directory.
4. Run: "make".
5. Run: "sudo make install".
Right?
Compile in Xcode.
1. Create c++ application.
2. Get some code from examples
(examples/Voronoi_diagram_2/vd_2_point_location.cpp).
3. Build?
How to say Xcode to use CGAL?
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.
--
Stephane Tayeb
Software engineer - INRIA Sophia Antipolis
Geometrica Project-Team
- [cgal-discuss] How to install CGAL into MacOS and compile programs in Xcode?, Serebryakov, 03/09/2010
- Re: [cgal-discuss] How to install CGAL into MacOS and compile programs in Xcode?, Stephane Tayeb, 03/09/2010
- Re: [cgal-discuss] How to install CGAL into MacOS and compile programs in Xcode?, Антон Серебряков, 03/09/2010
- Re: [cgal-discuss] How to install CGAL into MacOS and compile programs in Xcode?, Stephane Tayeb, 03/09/2010
Archive powered by MHonArc 2.6.16.