Conditionnal use of VTK. If CGAL_USE_VTK is not defined, the demo displays

"That demo needs VTK support."
This commit is contained in:
Laurent Rineau 2008-05-20 08:18:03 +00:00
parent bbe42645bc
commit ba5de5d964
1 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,8 @@
PURPOSE. See the above copyright notice for more information.
*/
#ifdef CGAL_USE_VTK
#include <qapplication.h>
#include <iostream>
#include <cstdlib>
@ -161,4 +163,14 @@ int main(int argc, char** argv)
return 0;
}
#else // #ifdef CGAL_USE_VTK
#include <iostream>
int main()
{
std::cerr << "That demo needs VTK support.\n";
return 0;
}
#endif // CGAL_USE_VTK