Download CGAL for Windows

With a Package Manager

We recommand to use vcpkg:
vcpkg install cgal

To see how to use libraries installed with vcpkg refer to the official documentation.

Build from Source

To build CGAL from source on Windows you have to download an installer or tarball or you can clone the current development version of CGAL from GitHub. Below are the installation instructions for the installer.

Please note that the directory layout and build process of the development version on GitHub are different from the release version.

Step by Step Instructions for Installing and Using CGAL from the Installer

Instructions here are given assuming the user will select the 64-bit version of Visual C++.

General Prerequisites

Installing Dependencies


Binary versions of Boost are available on SourceForge.

The installers install both boost headers and precompiled libraries. Please note that the CGAL project is not responsible for the files provided on this web site. At the moment these lines were written, the latest version was 1.71.

I download and run the file boost_1_71_0-msvc-xx.0-64.exe (where xx = 12 for 2013 for example).

I choose to extract the files to a new directory: c:\dev\libboost_1_71_0.

I then need to set the following two environment variables to point respectively to the path of the libraries and the headers


I also need to add the path to the Boost dll (C:\dev\libboost_1_71_0\lib64-msvc-xx.0)files in my PATH environment variable.

Qt 5 (Only needed for building demos)

Installing CGAL

Run the installer and select the version you want to install (this is only used to download the precompiled GMP and MPFR):

I choose C:\dev\CGAL-5.0 as installation directory.

CGAL being a header-only library, I do not need to compile it. I then set the environment variable CGAL_DIR to C:\dev\CGAL-5.0.

Building an Example

Examples do not need Qt 5.

Building a Demo

All demos need Qt 5.

Appendix: How to Set the PATH Variable or Other Environment Variables on Windows Systems

From the desktop, right-click My Computer and click properties (on Vista/Win7 click Advanced system settings on the left side).