what is CGAL_USE_BASIC_VIEWER ?? #8667
-
I tried the example from the documentation https://doc.cgal.org/latest/Manual/devman_create_and_use_a_cmakelist.html I modified the CMakeLists.txt file to use Qt5 instead of Qt6. Everything built successfully but when I run the program I get the following error Impossible to draw, CGAL_USE_BASIC_VIEWER is not defined. I cannot find anything in the documentation that discusses it. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Cf the example in the section "Minimal Example Using Qt6" https://doc.cgal.org/latest/Manual/devman_create_and_use_a_cmakelist.html#secexample CGAL_USE_BASIC_VIEWER is defined automatically if you link with the target CGAL::CGAL_Basic_viewer (and if this target exists). |
Beta Was this translation helpful? Give feedback.
-
oh good grief. When I update the CMakeLists.txt file I forgot to update the "if(CGAL_Qt6_FOUND)" section.
Example works now :-) |
Beta Was this translation helpful? Give feedback.
-
Maybe so?
|
Beta Was this translation helpful? Give feedback.
oh good grief. When I update the CMakeLists.txt file I forgot to update the "if(CGAL_Qt6_FOUND)" section.
Here's the complete file (the example is for Qt6, and my system uses Qt5)
Example works now :-)
Sorry for the bother and thank you for the quick response !!