also test leda if it is available

This commit is contained in:
Andreas Fabri 2013-03-22 16:41:54 +01:00
parent e370c5eaa5
commit 5cc398f7fe
2 changed files with 11 additions and 15 deletions

View File

@ -679,9 +679,10 @@ int main()
std::cout << std::endl << "Testing with Simple_cartesian<double>..." << std::endl ;
b &= test_kernel<CGAL::Simple_cartesian<double> >(true);
#ifdef CGAL_USE_GMP
std::cout << std::endl << "Testing with Simple_cartesian<Gmpq>..." << std::endl ;
b &= test_kernel<CGAL::Simple_cartesian<CGAL::Gmpq> >(true);
#endif
std::cout << std::endl << "Testing with Cartesian<float>..." << std::endl ;
b &= test_kernel<CGAL::Cartesian<float> >(false);

View File

@ -1,13 +1,8 @@
#include <CGAL/Cartesian.h>
#ifdef CGAL_USE_GMP
#include <CGAL/Gmpq.h>
typedef CGAL::Gmpq NT;
#else
#include <CGAL/MP_Float.h>
#include <CGAL/Quotient.h>
typedef CGAL::Quotient<CGAL::MP_Float> NT;
#endif
#include <CGAL/Arithmetic_kernel.h>
// leda_rational, or Gmpq, or Quotient<MP_float>
typedef CGAL::Arithmetic_kernel::Rational NT;
typedef CGAL::Cartesian<NT> Kernel;
typedef Kernel::Triangle_3 Triangle;
typedef Kernel::Point_3 Point;