![]() Some of the CMake variables represent user choices, such as CMAKE_BUILD_TYPE, while others indicate the details of a third-party library, such as Boost_INCLUDE_DIR or which compiler flags to use, such as CMAKE_CXX_FLAGS. The end of the process is marked by the generation of a makefile that you can use to install CGAL.ĬMake maintains configuration parameters in so-called cmake variables. Gathering all this information is called configuration. This is what this page is about.īefore building anything using CGAL, you have to choose the compiler/linker, set compiler and linker flags and specify which third-party libraries you want to use and where they can be found. In a less ideal world, you might have to install some required tools and third-party libraries. Ideally, installing CGAL, as well as compiling some examples shipped by CGAL is as simple as: cd $HOME/CGAL-5.5.1Ĭd examples/Triangulation_2 # go to an example directoryĬmake -DCGAL_DIR=$CMAKE_INSTALLED_PREFIX/lib/CGAL -DCMAKE_BUILD_TYPE=Release. It is assumed that you have downloaded a source archive of CGAL, and are using Linux or macOS. This page is a step-by-step description of how to configure and install CGAL, and (optionally) build examples, tests and demos. If this is not your case, head over back to the page Getting Started with CGAL. This page is for advanced users that either want to install CGAL on their system, or want to build the examples, tests and demos that are shipped in a git branch, for example. ![]() Since CGAL version 5.0, CGAL is header-only, which means that there is no need to compile CGAL or its libraries before it can be used.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |