Commit Graph

71 Commits

Author SHA1 Message Date
Laurent Rineau 90782d4b7f Revert the merge of two pull-requests that target CGAL-4.14-branch
- Revert "Merge pull request #3857 from MaelRL/CGAL-Fix_duplicate_non_manifold_vertices-GF"
- Revert "Merge pull request #3898 from lrineau/Mesh_3-stop_during_protection-lrineau"
2019-05-14 17:50:45 +02:00
Laurent Rineau 80717c6f41 Merge pull request #3406 from mglisse/cgal-public-dev/Number_types-boost_mp-glisse-2
Support Boost.Multiprecision
2019-01-18 16:37:49 +01:00
Marc Glisse 455d93def3 Remove redundant includes. 2018-11-07 14:19:39 +01:00
Marc Glisse 0211ca58c7 Include CGAL/gmp.h before the boost multiprecision GMP wrapper, for warnings. 2018-11-07 14:06:57 +01:00
Guillaume Damiand 92ba7fa6c9 Update minimum cmake required version in all CMakeLists.txt 2018-10-18 14:49:23 +02:00
Guillaume Damiand 0c2dcf7208 Re-add include({CGAL_USE_FILE} ) in each CMakeLists.txt where CGAL is used with some component. 2018-10-18 14:38:42 +02:00
Guillaume Damiand 0bd9088b5a Remove all include( ) and include( CGAL_CreateSingleSourceCGALProgram ) in CMakeLists.txt; they are no more required. 2018-10-17 14:17:08 +02:00
Marc Glisse 6bf9913015 Add $URL$ and $Id$.
I thought those were long dead...
2018-10-16 15:05:17 +02:00
Marc Glisse 3aa3e81871 Add SPDX headers ??? 2018-10-16 14:38:12 +02:00
Marc Glisse 469d63f9d6 More support for Boost.Multiprecision wrapper to GMP (untested). 2018-10-15 15:42:56 +02:00
Marc Glisse 5d86761acb arithmetic kernel for boost multiprecision GMP wrapper (untested) 2018-10-15 15:42:56 +02:00
Marc Glisse 7f9c334a89 Support gmp_rational from boost (completely untested) 2018-10-15 15:42:56 +02:00
Marc Glisse 4bb4fde1f7 Missing includes and I/O. 2018-10-15 15:42:56 +02:00
Marc Glisse 7857964f3b Some coercions and an arithmetic kernel for Boost.Multiprecision. 2018-10-15 15:42:55 +02:00
Maxime Gimeno 688b5dd06e Move dependencies creation to package_info and add dependencies to git 2018-02-02 12:08:05 +01:00
Maxime Gimeno a676d5a60e Try to fix errors in classification checks 2018-02-02 12:08:05 +01:00
Maxime Gimeno ae36b452bc Add dependencies of all packages 2018-02-02 12:08:05 +01:00
Laurent Rineau 3c6640bf59 Merge pull request #1436 from lrineau/CGAL-new_cmake-GF
Renewal of CMake scripts: header-only, ctest, CMake>=3.1

# Conflicts:
#	Installation/config/testfiles/CGAL_CFG_NESTED_CLASS_FRIEND_DECLARATION_BUG.cpp
2017-12-05 18:20:05 +01:00
Laurent Rineau 21b9a2177d Do not use the CGAL-components syntax for GMP, MPFR, MPFI, and RS3 2017-11-23 17:06:46 +01:00
Sébastien Loriot 8cdfad0d08 add missing URL and Id tags 2017-11-15 22:58:57 +01:00
Sébastien Loriot 0698f79aff add SPDX identifier for files under the LGPL-3+ license 2017-11-12 10:17:50 +01:00
Laurent Rineau d0ce7a83fa Fix a similar CMake warning 2016-11-18 15:40:46 +01:00
Marc Glisse 589139cf2c New GMPXX_arithmetic_kernel. 2016-10-22 21:48:27 +02:00
Sébastien Loriot 7e2ee496de update project name of cmake scripts of tests 2016-09-08 00:26:37 +02:00
Sébastien Loriot 7af9394e74 avoid unused type warning 2016-02-04 19:42:37 +01:00
Laurent Rineau 3f13ef684b Fix CMakeLists.txt when GMP is disabled
The two directories using MPFI were incorrect, when `CGAL_DISABLE_GMP`
was used. The patch now checks `GMP_FOUND`.
2016-01-06 11:59:50 +01:00
Andreas Fabri 43fb0a74e5 cleanup 2015-10-01 14:33:38 +02:00
Laurent Rineau f9917c487e CMake 2.8.11 2015-07-13 12:36:43 +02:00
Laurent Rineau e4b033e964 Add/remove #include
- I remove <CGAL/basic.h> when I see it, in favor of <CGAL/config.h>.
- <CGAL/ipower.h> is needed for CGAL::ipower
- <ctime> is needed for std::time
2014-06-26 19:10:06 +02:00
Laurent Rineau 26a7e70785 New license.txt files (eol changes)
The new version 2.13.0 of licensecheck has changed the spaces at eol.
2013-02-19 16:46:39 +01:00
Michael Hemmer 8cfa1699a3 update email 2012-10-09 11:52:16 +00:00
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
Eric Berberich 6ef22380b4 make the find_package of CGAL more preconfigy, get version of GMP
This fixes the previous "fix": it is needed to call get_dependency_version(GMP)
2012-06-28 09:08:25 +00:00
Eric Berberich 8d0373c7d6 CGAL_GMP_VERSION has been deleted
CGAL_GMP_VERSION has been replaced by GMP_VERSION in various FindLIB.cmake files
2012-06-26 23:12:12 +00:00
Laurent Rineau a37c74d534 Add license files, per package 2012-01-16 15:54:22 +00:00
Laurent Rineau 5b5dd33848 merge changes from next 2012-01-09 12:33:39 +00:00
Michael Hemmer 5120d52b17 reduce includes due to Arithmetic_kernel.h
each NT only includes his arithmetic kernel
2011-10-23 15:34:25 +00:00
Sébastien Loriot 91a5327fa8 change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Sébastien Loriot 554f62d411 remove executable property from copyright files 2011-10-03 08:18:16 +00:00
Andreas Fabri b5e7f4282d Add copyright file and change GF->MPI in one file 2011-10-01 07:55:55 +00:00
Guillaume Damiand a29c905ee0 Replace BOOST_STATIC_ASSERT by CGAL_static_assertion. 2011-08-31 14:30:07 +00:00
Sébastien Loriot 4846101f51 merge from next 2011-05-23 16:35:56 +00:00
Laurent Rineau 2ba80a553b merge from trunk 2011-05-18 11:38:41 +00:00
Michael Hemmer a5f97897be remove unused files from trunk 2011-05-17 12:03:17 +00:00
Sébastien Loriot e0d7cbd83f do not include Gmpfi nor Gmpfz if Gmpfi is not available 2011-05-09 15:27:23 +00:00
Sébastien Loriot c8b96139c6 *GMP_arithmetic_kernel now always define Integer and Rational even when Gmpfi
is not available.

*Add default empty struct for Get_arithmetic_kernel. That way we can test if
a specialization is avaible. I used it for the default case of Root_of_traits.
When a number type not known by CGAL is used to instanciate Root_of_traits,
the field type used to instanciate Sqrt_extension is made using Quotient.

*Patch of Lazy_exact_nt constructor from another Lazy_exact_nt type.
In revision 61559, that constructor was retricted to the case the exact type
is implicitely constructed from the other exact type. Now the old behavior is
back but only if it is explicitely called (patch from Marc Glisse).

*Update To_double specialization of Sqrt_extension to use the same formula
than To_interval so that the double value is contained in the interval.

*update root_of_2 test-suite to use Sqrt_extension and that they behave
similarly
2011-05-04 07:32:31 +00:00
Sébastien Loriot 81f8f69ffe merge from next 2011-04-28 18:44:10 +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
Sébastien Loriot 9176663964 the lib now compiles.
move Get_arithmetic_kernel specialization into MP_Float.h
reorder declaration of to_double(Sqrt_extension<MP_Float>)

Sqrt_extension need specialization of Real_embeddable_traits
and Algebraic_structure_traits.
2011-04-28 16:44:00 +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