CGAL 5.2 - Manual
|
This page will explain how to manually create a CMakeLists.txt
file to link a custom program with CGAL.
A base can be created using the script cgal_create_CMakeLists
. Its usage is detailed in Section Creating a CMake Script for a Program Using CGAL.
To link with the CGAL library, use the following:
Other CGAL libraries are linked similarly. For example, with CGAL_Core
:
There are also imported targets to link with CGAL dependencies that can be found in the section Essential and Optional Third Party Dependencies.
-frounding-math
with gcc/fp:strict /fp:except-
with MSVCThis section describes a minimal example of a program that uses CGAL and Qt5 for some GUI features.