Compiling an example shipped with CGAL is similar simple:
cd examples/Straight_skeleton_2 # go to an example directory cmake -DCGAL_DIR=$HOME/CGAL-4.6 . # configure the examples make # build the examples
Compiling an own non-shipped program is also close:
cd /path/to/program cgal_create_CMakeLists -s executable cmake -DCGAL_DIR=$HOME/CGAL-4.6 . make
where the second line creates a
CMakeLists.txt
file (check its options in Sectioncgal_create_CMakeLists 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.
没有评论:
发表评论