How to install the CGAL program
This document describes how to install CGAL on Windows, Unix-like systems, and MacOS X.
Ideally, setting up CGAL amounts to:
- cd CGAL-4.14 # go to CGAL directory
- cmake . # configure CGAL
- make # build the CGAL libraries
Compiling an example or a demo shipped with CGAL is similarly simple:
- cd examples/Triangulation_2 # go to an example directory
- cmake -DCGAL_DIR=/CGAL-4.14 . # configure the examples
- make # build the examples
- cd demo/Triangulation_2 # go to a demo directory
- cmake -DCGAL_DIR=/CGAL-4.14 . # configure the demos
- make # build the demos
Compiling an own non-shipped program is also close:
- cd /path/to/program
- cgal_create_CMakeLists -s executable
- cmake -DCGAL_DIR=/CGAL-4.14 .
- make
where the second line creates a CMakeLists.txt file (check its options in Section cgal create CMaleListd for various details).
In a less ideal world, you probably have to install CMake, a makefile generator, and third party libraries. That is what this manual is about.