diff --git a/GraphicsView/demo/Polygon/CMakeLists.txt b/GraphicsView/demo/Polygon/CMakeLists.txt index 341021360a3..303b381e038 100644 --- a/GraphicsView/demo/Polygon/CMakeLists.txt +++ b/GraphicsView/demo/Polygon/CMakeLists.txt @@ -13,7 +13,7 @@ if(NOT TARGET CGAL::Eigen3_support) return() endif() -find_package(Qt6 QUIET COMPONENTS Widgets OpenGLWidgets) +find_package(Qt6 QUIET COMPONENTS Widgets) if(CGAL_Qt6_FOUND AND Qt6_FOUND) include(${CGAL_USE_FILE}) diff --git a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/CMakeLists.txt b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/CMakeLists.txt index 5b8060beca2..d62d77e37b7 100644 --- a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/CMakeLists.txt +++ b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/CMakeLists.txt @@ -7,7 +7,7 @@ project(Optimal_transportation_reconstruction_2_Demo) find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6) # Find Qt6 itself -find_package(Qt6 QUIET COMPONENTS Widgets OpenGLWidgets) +find_package(Qt6 QUIET COMPONENTS Widgets) # Find CImg find_path( @@ -34,7 +34,7 @@ if(CGAL_Qt6_FOUND AND Qt6_FOUND) add_executable(Otr2_demo glviewer.cpp scene.cpp Otr2_demo.cpp window.cpp render.cpp dialog_options.cpp pwsrec.ui options.ui pwsrec.qrc) - target_link_libraries(Otr2_demo PRIVATE CGAL::CGAL CGAL::CGAL_Qt6 Qt6::OpenGLWidgets) + target_link_libraries(Otr2_demo PRIVATE CGAL::CGAL CGAL::CGAL_Qt6) # Link with pthread if necessary if(CIMG_INCLUDE_DIR) diff --git a/Polyhedron/demo/Polyhedron/implicit_functions/CMakeLists.txt b/Polyhedron/demo/Polyhedron/implicit_functions/CMakeLists.txt index b821fd3e779..174535ff5d5 100644 --- a/Polyhedron/demo/Polyhedron/implicit_functions/CMakeLists.txt +++ b/Polyhedron/demo/Polyhedron/implicit_functions/CMakeLists.txt @@ -23,11 +23,7 @@ include_directories(BEFORE ${Mesh_3_implicit_functions_BINARY_DIR} ../include) find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6) # Find Qt6 itself -set(QT_USE_QTXML TRUE) -set(QT_USE_QTMAIN TRUE) -set(QT_USE_QTSCRIPT TRUE) -set(QT_USE_QTOPENGL TRUE) -find_package(Qt6 QUIET COMPONENTS OpenGLWidgets) +find_package(Qt6 QUIET COMPONENTS Core) if(CGAL_Qt6_FOUND AND Qt6_FOUND) # put plugins (which are shared libraries) at the same location as