Mercurial > hg > orthanc-stone
changeset 1037:4e713ef78a5a
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Oct 2019 18:01:03 +0200 |
parents | d7d3227c11a9 |
children | 3a35d8397559 |
files | Resources/CMake/QtConfiguration.cmake |
diffstat | 1 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/QtConfiguration.cmake Mon Oct 07 15:26:29 2019 +0200 +++ b/Resources/CMake/QtConfiguration.cmake Mon Oct 07 18:01:03 2019 +0200 @@ -31,6 +31,12 @@ Qt5::Core ) + if (ENABLE_OPENGL) + link_libraries( + Qt5::QtOpenGL + ) + endif() + # Create aliases for the CMake commands macro(ORTHANC_QT_WRAP_UI) QT5_WRAP_UI(${ARGN}) @@ -39,7 +45,7 @@ macro(ORTHANC_QT_WRAP_CPP) QT5_WRAP_CPP(${ARGN}) endmacro() - + else() message("Qt5 has not been found, trying with Qt4") find_package(Qt4 REQUIRED QtGui) @@ -47,6 +53,12 @@ Qt4::QtGui ) + if (ENABLE_OPENGL) + link_libraries( + Qt4::QtOpenGL + ) + endif() + # Create aliases for the CMake commands macro(ORTHANC_QT_WRAP_UI) QT4_WRAP_UI(${ARGN})