ports/graphics/libQGLViewer/files/patch-CMakeLists.txt
Yuri Victorovich c6d1ece34a graphics/libQGLViewer: update 2.7.2 → 2.9.1
Will flavorize this port next.

Reported by:	portscout
2024-04-05 02:15:40 -07:00

18 lines
652 B
Text

--- CMakeLists.txt.orig 2024-04-05 07:42:05 UTC
+++ CMakeLists.txt
@@ -17,11 +17,13 @@ set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOUIC ON)
# This will find the Qt files.
+if (USE_QT6)
find_package(Qt6 COMPONENTS Core Widgets Xml OpenGL OpenGLWidgets)
if (Qt6_FOUND)
message("Building with Qt6")
- set(QtLibs Qt::Core Qt::Widgets Qt::Xml Qt::OpenGL Qt::OpenGLWidgets)
-else()
+ set(QtLibs Qt::Core Qt::Widgets Qt::Xml Qt::OpenGL Qt::OpenGLWidgets)
+endif(Qt6_FOUND)
+else(USE_QT6)
find_package(Qt5 5.15 REQUIRED COMPONENTS Core Widgets Xml OpenGL)
message("Building with Qt5")
set(QtLibs Qt::Core Qt::Widgets Qt::Xml Qt::OpenGL)