summaryrefslogtreecommitdiff
path: root/graphics/libQGLViewer/files/patch-CMakeLists.txt
blob: 8686c4f3eb41677e273e138416924ee37a7fd19f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- 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)