Skip to content

Commit 99c3a90

Browse files
author
Juan Hernando Vieites
committed
Ensure Qt5 OpenGL is present for the DeflectQt library
1 parent 128e815 commit 99c3a90

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ endif()
4747
common_find_package(Qt5Network REQUIRED)
4848
common_find_package(Qt5Qml)
4949
common_find_package(Qt5Quick)
50+
common_find_package(Qt5OpenGL)
5051
common_find_package(Qt5Widgets REQUIRED)
5152
common_find_package_post()
5253

deflect/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ common_library(Deflect)
6262

6363
add_subdirectory(server)
6464

65-
if(Qt5Qml_FOUND AND Qt5Quick_FOUND AND NOT Qt5Quick_VERSION VERSION_LESS 5.4)
65+
if(Qt5Qml_FOUND AND Qt5Quick_FOUND AND QtOpenGL_FOUND AND
66+
NOT Qt5Quick_VERSION VERSION_LESS 5.4)
6667
add_subdirectory(qt)
6768
endif()

0 commit comments

Comments
 (0)