example requires qt

This commit is contained in:
Guillaume Damiand 2023-12-14 08:33:58 +01:00
parent 8710dbe861
commit d13b856c20
1 changed files with 5 additions and 0 deletions

View File

@ -6,7 +6,10 @@
#include <CGAL/draw_point_set_3.h>
#include <CGAL/Graphics_scene_options.h>
#include <CGAL/Qt/Basic_viewer.h>
#ifdef CGAL_USE_BASIC_VIEWER
#include <QMainWindow>
#endif
#include <vector>
#include <iostream>
@ -52,6 +55,7 @@ int main(void)
CGAL::add_to_graphics_scene(output_mesh, scene2);
/// (2) Qt code that create windows, add them in a layout, and create app.
#ifdef CGAL_USE_BASIC_VIEWER
#if defined(CGAL_TEST_SUITE)
bool cgal_test_suite=true;
@ -81,6 +85,7 @@ int main(void)
mainWindow->show();
app.exec();
#endif
return EXIT_SUCCESS;
}