cgal/Linear_cell_complex/examples/Linear_cell_complex
Laurent Rineau 2db4effa7e CMake: Fix the handling of cmake_policy
That is a followup-to my commit last year:
  | ------------------------------------------------------------------------
  | r63198 | lrineau | 2011-04-28 19:45:22 +0200 (Thu, 28 Apr 2011) | 5 lines
  | 
  | Try to fix my last revision about cmake_policy, with CMake-2.6.x
  | 
  | CMake gives an error if one tries to use cmake_policy(VERSION x.y.z) if
  | x.y.z is greater than the current CMake version.
  | 
  | ------------------------------------------------------------------------

The following check:
  if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6)
is useless just after a call to:
 cmake_minimum_required(VERSION 2.6.2)



The script used to fix that was:


#!/usr/bin/env perl

$replacement=<<'END';
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3)
  cmake_policy(VERSION 2.8.4)
else()
  cmake_policy(VERSION 2.6)
endif()
END

while(<>) {
    if(/if\("\${CMAKE_MAJOR_VERSION}.\${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6\)/) {
        while(<>) {
            if(/^endif\(\)/) {
                print "$replacement";
                while(<>) {
                    print;
                }
                exit 0
            }
        }
    }
    print;
}
2012-08-22 12:35:03 +00:00
..
data Remove warnings + useless data file. 2011-12-28 14:03:24 +00:00
CMakeLCCViewerQt.inc Examples in LCC. 2011-12-19 14:39:49 +00:00
CMakeLCCViewerVtk.inc Examples in LCC. 2011-12-19 14:39:49 +00:00
CMakeLists.txt CMake: Fix the handling of cmake_policy 2012-08-22 12:35:03 +00:00
README.txt * Add a second subdvision method in LCC demo 2012-07-02 09:20:14 +00:00
linear_cell_complex_3.cpp Revert of linear_cell_complex_3 example to use foreach which is now ok. Copyright. Add tests. 2011-11-21 13:11:43 +00:00
linear_cell_complex_3_triangulation.cpp Remove licence headers in examples of LCC. 2012-08-14 14:54:46 +00:00
linear_cell_complex_3_viewer_qt.h Modifs of example. Now voronoi2 is a real voronoi diagramm. 2011-12-20 10:31:16 +00:00
linear_cell_complex_3_viewer_vtk.h Modifs of example. Now voronoi2 is a real voronoi diagramm. 2011-12-20 10:31:16 +00:00
linear_cell_complex_3_with_colored_vertices.cpp Small modifs of examples after a last proofreading of manuals 2011-11-08 18:45:53 +00:00
linear_cell_complex_3_with_mypoint.cpp Remove some warnings 2012-07-05 13:39:34 +00:00
linear_cell_complex_4.cpp Small modifs of examples after a last proofreading of manuals 2011-11-08 18:45:53 +00:00
plane_graph_to_lcc_2.cpp Remove licence headers in examples of LCC. 2012-08-14 14:54:46 +00:00
voronoi_2.cpp Remove licence headers in examples of LCC. 2012-08-14 14:54:46 +00:00
voronoi_3.cpp Remove licence headers in examples of LCC. 2012-08-14 14:54:46 +00:00

README.txt

Examples for Linear_cell_complex package:
=========================================

* linear_cell_complex_3.cpp
  linear_cell_complex_3_with_colored_vertices.cpp
  linear_cell_complex_4.cpp

  Three "basic" examples, detailled in the user manual.


* plane_graph_to_lcc_2.cpp

  Program allowing to transform a planar graph into a 2D linear cell complex.


* linear_cell_complex_3_triangulation.cpp

  Example showing how to triangulate a face of a Linear_cell_complex, 
  using CGAL::Constrained_Delaunay_triangulation_2.


* voronoi_2.cpp

  Example showing how to compute 2D voronoi diagram of a set of 2D points.


* voronoi_3.cpp

  Example showing how to compute 3D voronoi diagram of a set of 3D points.


* linear_cell_complex_3_with_mypoint.cpp

  Example showing how to customize the type of points used in LCC.