Skip to content

Commit 761f7d0

Browse files
author
Juan Hernando
authored
Ensure Qt5 OpenGL is present for the DeflectQt library (#210)
1 parent 128e815 commit 761f7d0

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ addons:
3838
- libturbojpeg
3939
- qtbase5-dev
4040
- qtdeclarative5-dev
41+
- libqt5opengl5-dev
4142
before_install:
4243
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
4344
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated cmake || brew upgrade cmake; fi

CMakeLists.txt

+1
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

+2-1
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)