modified the demos to compile if the LEDA is not installed

This commit is contained in:
Radu Ursu 2003-07-16 10:33:15 +00:00
parent ddad646d04
commit 34d8ba9942
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,8 @@
#ifndef CGAL_USE_LEDA
#include <iostream>
int main(){ std::cout << "This demo needs LEDA" << std::endl; return 0;}
#else
#include <CGAL/Cartesian.h>
#include <CGAL/IO/Istream_iterator.h>
#include <CGAL/IO/Window_stream.h>
@ -26,3 +31,5 @@ int main () {
std::ostream_iterator<Point>(std::cout,"\n"));
return 0;
}
#endif

View File

@ -1,3 +1,9 @@
#ifndef CGAL_USE_LEDA
#include <iostream>
int main(){ std::cout << "This demo needs LEDA" << std::endl; return 0;}
#else
// stream_iterator.C
// ----------------------------------------------------------
// CGAL example program for the CGAL stream iterator adaptor.
@ -49,3 +55,5 @@ int main() {
return 0;
}
#endif