protected with #ifdef CGAL_USE_QT

This commit is contained in:
Andreas Fabri 2007-03-05 09:04:37 +00:00
parent 9afdc7aec4
commit b32b7f28db
1 changed files with 15 additions and 0 deletions

View File

@ -26,6 +26,9 @@
// Damien Leroy
// moc_source_file: demo_circle.h
#ifdef CGAL_USE_QT
#include "demo_circle.moc"
int main (int argc, char** argv) {
@ -52,3 +55,15 @@ int main (int argc, char** argv) {
return app.exec();
}
#else // CGAL_USE_QT not defined:
#include <iostream>
int main(int, char*)
{
std::cout << "Sorry, this demo needs QT ..." << std::endl;
return (0);
}
#endif // CGAL_USE_QT