Commit Graph

63 Commits

Author SHA1 Message Date
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
Laurent Rineau 8f59fd9592 Turn QPL into LGPLv3+ 2012-01-13 16:33:35 +00:00
Sébastien Loriot 91a5327fa8 change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Laurent Rineau 369498d1e5 Cancel revision 64607. There had been a problem with the branch.
| ------------------------------------------------------------------------
  | r64607 | efif | 2011-07-05 17:27:04 +0200 (Tue, 05 Jul 2011) | 1 line
  | 
  | Merged feature-branch Aos_2-new_functors-tau into next
  | ------------------------------------------------------------------------
2011-07-06 11:11:58 +00:00
Laurent Rineau ffc1186215 - Add a function overload that was documented but not implemented!
- Fix a call in a deprecated function.
- In the tests, add the test of the deprecated functions.
2011-05-11 12:34:50 +00:00
Laurent Rineau 3c02e07b23 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.
2011-04-28 17:45:22 +00:00
Laurent Rineau c97205f085 Global handling of CMake policies (second part)
We declare 
  cmake_minimum_required(VERSION 2.6.2)
but we also use
  cmake_policy(VERSION 2.8.4)
to declare that our CMake scripts are OK with all the defaults of CMake policies
as of CMake-2.8.4. That shuts down the warnings of CMake-2.8.4.

That way, we no longer need any declaration of specific policies.

Those two lines must be present and maintained in all our CMakeLists.txt
files (the one for the libraries, and also the one for examples and demos,
and maybe tests).
2011-04-28 10:55:56 +00:00
Laurent Rineau 0631943153 Uniform capitalization in our CMake script: use lowercase for commands 2011-04-28 10:36:18 +00:00
Laurent Rineau ca5c92e034 Global maintenance of CMakeLists.txt: CMake minimal version is -2.6.2
The documentation of CGAL says that the minimal version of CMake must be
CMake-2.6.2.
  - change cmake_minimum_required to VERSION 2.6.2
  - no longer any need for the policy CMP0003 (was for 2.4.x)
  - no longer any need for CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS (was for 2.4)
2011-04-27 17:58:27 +00:00
Laurent Rineau 95cde53b17 Merge "Mesh_3 with features" in trunk, so that it is in CGAL-3.8, at last!
https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Mesh_3_with_features
2011-01-10 15:43:22 +00:00
Laurent Rineau f56460dce4 Add test of I/O operators of C3t3 2010-11-10 13:58:57 +00:00
Stéphane Tayeb b54f2dc130 Bug fix: ensure that c3t3 contains no in complex cell when starting a new refinement process. We need this because the first refinement of the surface does not update the volume, so c3t3 can't know that in complex cells have been deleted. 2010-08-12 15:40:41 +00:00
Stéphane Tayeb 87f968d928 Fix warning on Intel compiler. 2010-07-05 07:52:36 +00:00
Stéphane Tayeb 2ec1dd5eb9 Fix warnings: fix r57304: use std::size_t instead of strange casts to unsigned int. 2010-07-02 15:37:13 +00:00
Stéphane Tayeb f2973b7ff0 Fix warnings on MSVS2010. 2010-07-02 14:51:18 +00:00
Stéphane Tayeb 86ed389470 + Fix test suite wrt mesher efficiency improvement
+ Fix typo
2010-06-11 08:11:12 +00:00
Stéphane Tayeb 2ae782d74a Remove extra ';'. 2010-05-17 07:00:15 +00:00
Andreas Fabri 85462651e4 Replace derivation of a kernel by a typedef, as otherwise we do not profit from static filters in the EPIC kernels 2010-05-14 08:58:30 +00:00
Stéphane Tayeb ab513413a7 Add 'this->' for ansi-compliance. 2010-05-10 07:23:41 +00:00
Stéphane Tayeb d2572ea9e5 Enrich test_c3t3 2010-04-21 11:10:55 +00:00
Stéphane Tayeb 1f3332bf63 Move Mesh_3 from candidate-packages to trunk (2/2) 2010-01-06 13:46:02 +00:00
Stéphane Tayeb 313a28d9a2 Move Mesh_3 from candidate-packages to trunk (1/2) 2010-01-06 13:44:50 +00:00
Stéphane Tayeb 43fd508112 Merge r53086 from branches/experimental-packages/Mesh_3_with_optimizations
r53086 | stayeb
Use static filtered predicate Side_of_oriented_sphere_3 instead of Side_of_bounded_sphere_3.
2009-11-18 10:37:30 +00:00
Stéphane Tayeb 4874158276 Fix robust circumcenter construction (fix r52147). 2009-11-03 12:16:19 +00:00
Stéphane Tayeb 321c9893d6 use is_zero() comparison in traits. Add precondition check. 2009-10-05 16:06:14 +00:00
Stéphane Tayeb 7057ddc2d1 Merge [r51556-r51996]
From branches/CGAL-3.5-branch/Mesh_3 To trunk/Mesh_3.

r51758 | lrineau
* Fix all \ccPkgHowToCiteCgal at once to turn 08 into 09

r51937 | stayeb
* Fix polyhedral oracle issue: switch to exact intersection computation.

r51957 | stayeb
* cleanup example folder.

r51960 | stayeb
* Remove wrong using namespace statement.
2009-09-21 14:36:31 +00:00
Stéphane Tayeb a2682b9bc2 Merge [r51123-r51555]
From branches/CGAL-3.5-branch/Mesh_3 To trunk/Mesh_3.

r51555 | stayeb | 2009-08-27 15:10:21 +0200 (Thu, 27 Aug 2009) | 1 line
Fix missing svn properties.

r51552 | stayeb | 2009-08-27 13:45:47 +0200 (Thu, 27 Aug 2009) | 1 line
Fix test data size (gzip inr file).

r51431 | yvinec | 2009-08-24 12:08:59 +0200 (Mon, 24 Aug 2009) | 3 lines
fixed typo

r51382 | yvinec | 2009-08-20 17:59:49 +0200 (Thu, 20 Aug 2009) | 2 lines
fixed authors in reference manual

r51340 | yvinec | 2009-08-18 18:44:31 +0200 (Tue, 18 Aug 2009) | 2 lines
added package_info to Mesh_3
2009-08-27 13:46:14 +00:00
Laurent Rineau 07c73ca08d Remove no-longer-used GNUmakefile (and deps) 2009-08-20 13:58:10 +00:00
Stéphane Tayeb 149482f1f8 * Bug Fix: c3t3 cell/facet counter update during exudation 2009-07-09 14:17:51 +00:00
Stéphane Tayeb b0561461cc Remove old cgal_test file. 2009-07-08 11:26:02 +00:00
Stéphane Tayeb a32afb6637 * Bug Fix: c3t3 number of cells after refinment (Refine_cells_3.h)
* Bug Fix: c3t3 reconstruction (refine_mesh_3.h)
* Add assertions to check c3t3 number of cells & facets wrt std::distance (it was done only in test_c3t3) (test_meshing_*)
* Code factorization for dihedral angles computation (dihedral_angle_3.h, min_dihedral_angle.h)
* Cleanup
2009-07-08 09:00:25 +00:00
Stéphane Tayeb 13ce0db886 Attempt to fix warning on Inter Compiler. 2009-07-07 06:50:15 +00:00
Stéphane Tayeb 0e2c7a832d Fix robust weighted circumcenter. 2009-07-06 08:43:05 +00:00
Stéphane Tayeb 138d88f518 * Fix warnings
* Use adjacent_vertices instead of incident_vertices (which is deprecated)
2009-07-06 07:48:37 +00:00
Stéphane Tayeb 772f0ecd6b Split test_meshing into 3 files (less compilation memory consumption).\nDo not exude to verify mesher idempotence. 2009-07-03 12:32:32 +00:00
Stéphane Tayeb f7c6d2a847 Fix tests & compilation errors. 2009-06-28 17:39:25 +00:00
Stéphane Tayeb fe60ae5f4e Move Mesh_3 from branches/experimental-packages to trunk. 2009-06-26 15:29:26 +00:00
Laurent Rineau 3c6e2102f0 Move Mesh_3 into "experimental-packages" until accepted in CGAL.
(Request from Sylvain Pion.)
2007-03-19 07:32:03 +00:00
Andreas Fabri 871d9ab78f fix for min/max 2006-09-21 07:50:04 +00:00
Laurent Rineau cd4c32f716 fix GNUmakefil 2006-07-12 08:35:31 +00:00
Laurent Rineau 748fe298dc New test, that tests I/O operators of Mesh_3. 2006-07-11 23:34:00 +00:00
Laurent Rineau f3917f0301 fix symlinks 2006-07-10 10:22:28 +00:00
Laurent Rineau f5c912e666 - major switch from .C to .cpp. Andreas's script left a lot of things that
had to be fixed manually.
- new debug macro in <CGAL/Surface_mesher/Standard_criteria.h>
  - CGAL_MESH_3_DEBUG_CRITERIA
  Used in test/Mesh_3/combined_spheres*.cpp
2006-07-10 10:12:38 +00:00
Laurent Rineau efefca1909 - in test/Mesh_3/combined_spheres*.C:
- new surface criterion class, named Uniform_size_multi_surface_criterion
    It does at the same time the job of
    CGAL::Surface_mesher::Vertices_on_the_same_surface_criterion
    and add size bounds, different for each surfaces.
  - This fixes the "combined_spheres hot spots" problem.
2006-07-07 18:03:24 +00:00
Laurent Rineau bf07fad719 new way of dealing with dependencies, in my packages 2006-07-05 16:28:34 +00:00
Laurent Rineau 76031c515c change the way of dealing with symlinks 2006-07-05 12:26:00 +00:00
Laurent Rineau 6672e3f6c1 new .C in test/Mesh_3, temporarely 2006-07-05 07:13:20 +00:00
Laurent Rineau a637714456 fix typo 2006-07-05 07:12:23 +00:00
Laurent Rineau 30ea24ae51 modified cgal_test, that allow not to clean the binaries 2006-07-05 07:03:44 +00:00
Laurent Rineau bcf0615024 *** empty log message *** 2006-06-28 17:07:51 +00:00