2015年4月11日星期六

Compiling an example shipped with CGAL

cmake -DCGAL_DIR=/usr/local/Cellar/cgal/4.4

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.

没有评论: