mirror of https://github.com/CGAL/cgal
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;
}
|
||
|---|---|---|
| .. | ||
| data | ||
| CMakeLCCViewerQt.inc | ||
| CMakeLCCViewerVtk.inc | ||
| CMakeLists.txt | ||
| README.txt | ||
| linear_cell_complex_3.cpp | ||
| linear_cell_complex_3_triangulation.cpp | ||
| linear_cell_complex_3_viewer_qt.h | ||
| linear_cell_complex_3_viewer_vtk.h | ||
| linear_cell_complex_3_with_colored_vertices.cpp | ||
| linear_cell_complex_3_with_mypoint.cpp | ||
| linear_cell_complex_4.cpp | ||
| plane_graph_to_lcc_2.cpp | ||
| voronoi_2.cpp | ||
| voronoi_3.cpp | ||
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.