Skip to content

what is CGAL_USE_BASIC_VIEWER ?? #8667

Answered by PinkMushroom
PinkMushroom asked this question in Q&A
Discussion options

You must be logged in to vote

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)


cmake_minimum_required(VERSION 3.12...3.29)
project(Surface_mesh_Examples)
#CGAL_Qt5 is needed for the drawing.
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
#create the executable of the application
create_single_source_cgal_program("draw_surface_mesh.cpp")
if(CGAL_Qt5_FOUND)
 
  #link it with the required CGAL libraries
  target_link_libraries(draw_surface_mesh PUBLIC CGAL::CGAL_Basic_viewer)
endif()
 
#end of the file

Example works now :-)
Sorry for the bother and thank you for the quick response !!

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@PinkMushroom
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by PinkMushroom
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants