ubuntu 编译安装cgal5.4
cd $HOME/CGAL-5.5
mkdir build
cd build
cmake .. # configure CGAL
make install # install CGAL
cd examples/Triangulation_2 # go to an example directory
cmake -DCGAL_DIR=$CMAKE_INSTALLED_PREFIX/lib/CGAL -DCMAKE_BUILD_TYPE=Release . # configure the examples
make
mkdir CGAL-5.4.1/build/
cd CGAL-5.4.1/build/
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_examples=ON -DWITH_demos=ON ..
如果您只对特定模块的演示或示例感兴趣,可以通过以下方式构建它们:
make -C demo/Alpha_shapes_2 # 等价于 "cd demo/Alpha_shapes_2; make"
make -C examples/Alpha_shapes_2 # 等同于“cd examples/Alpha_shapes_2; make”