also test leda if it is available

This commit is contained in:
Andreas Fabri 2013-03-22 16:24:47 +01:00
parent 16806b0c44
commit e370c5eaa5
2 changed files with 6 additions and 17 deletions

View File

@ -1,16 +1,4 @@
#include <CGAL/basic.h> #include <CGAL/Arithmetic_kernel.h>
#ifdef CGAL_USE_GMP
// GMP is installed. Use the GMP rational number-type.
#include <CGAL/Gmpq.h>
typedef CGAL::Gmpq NT;
#else
// GMP is not installed. Use CGAL's exact rational number-type.
#include <CGAL/MP_Float.h>
#include <CGAL/Quotient.h>
typedef CGAL::Quotient<CGAL::MP_Float> NT;
#endif
#include <CGAL/Cartesian.h> #include <CGAL/Cartesian.h>
#include <CGAL/Arr_segment_traits_2.h> #include <CGAL/Arr_segment_traits_2.h>
#include <CGAL/Arr_curve_data_traits_2.h> #include <CGAL/Arr_curve_data_traits_2.h>
@ -23,7 +11,8 @@
using std::strcmp; using std::strcmp;
typedef CGAL::Gmpq NT; // leda_rational, or Gmpq, or Quotient<MP_float>
typedef CGAL::Arithmetic_kernel::Rational NT;
typedef CGAL::Cartesian<NT> Kernel; typedef CGAL::Cartesian<NT> Kernel;
typedef CGAL::Arr_segment_traits_2<Kernel> Segment_traits_2; typedef CGAL::Arr_segment_traits_2<Kernel> Segment_traits_2;
typedef CGAL::Arr_curve_data_traits_2<Segment_traits_2, typedef CGAL::Arr_curve_data_traits_2<Segment_traits_2,

View File

@ -1,6 +1,5 @@
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Cartesian.h> #include <CGAL/Cartesian.h>
#include <CGAL/Gmpq.h>
#include <CGAL/Timer.h> #include <CGAL/Timer.h>
#include <CGAL/Env_triangle_traits_3.h> #include <CGAL/Env_triangle_traits_3.h>
@ -14,7 +13,8 @@
#include <vector> #include <vector>
#include <map> #include <map>
typedef CGAL::Gmpq NT; // leda_rational, or Gmpq, or Quotient<MP_float>
typedef CGAL::Arithmetic_kernel::Rational NT;
typedef CGAL::Cartesian<NT> Kernel; typedef CGAL::Cartesian<NT> Kernel;
typedef Kernel::Point_3 Point_3; typedef Kernel::Point_3 Point_3;