mirror of https://github.com/CGAL/cgal
also test leda if it is available
This commit is contained in:
parent
e370c5eaa5
commit
5cc398f7fe
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue