Skip to content

Commit

Permalink
Ensure Qt5 OpenGL is present for the DeflectQt library (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Hernando authored Mar 13, 2019
1 parent 128e815 commit 761f7d0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ addons:
- libturbojpeg
- qtbase5-dev
- qtdeclarative5-dev
- libqt5opengl5-dev
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated cmake || brew upgrade cmake; fi
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ endif()
common_find_package(Qt5Network REQUIRED)
common_find_package(Qt5Qml)
common_find_package(Qt5Quick)
common_find_package(Qt5OpenGL)
common_find_package(Qt5Widgets REQUIRED)
common_find_package_post()

Expand Down
3 changes: 2 additions & 1 deletion deflect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ common_library(Deflect)

add_subdirectory(server)

if(Qt5Qml_FOUND AND Qt5Quick_FOUND AND NOT Qt5Quick_VERSION VERSION_LESS 5.4)
if(Qt5Qml_FOUND AND Qt5Quick_FOUND AND QtOpenGL_FOUND AND
NOT Qt5Quick_VERSION VERSION_LESS 5.4)
add_subdirectory(qt)
endif()

0 comments on commit 761f7d0

Please sign in to comment.