remove occurrences of OpenGLWidgets in demos' CMake scripts

This commit is contained in:
Laurent Rineau 2023-09-13 17:13:39 +02:00
parent 67baec27a1
commit b01da56a56
3 changed files with 4 additions and 8 deletions

View File

@ -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})

View File

@ -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)

View File

@ -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