cmake HAS_GL option, by default true, affect graphic and qglview

This commit is contained in:
2021-04-23 00:21:50 +03:00
parent 36a567dbeb
commit 159f0dd6c7
4 changed files with 20 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
if (((DEFINED QGLVIEW) AND QGLVIEW) OR (NOT DEFINED QGLVIEW))
if (((DEFINED QGLVIEW) AND QGLVIEW AND HAS_GL) OR (NOT DEFINED QGLVIEW))
find_package(OpenGL REQUIRED)
shstk_qad_project(qglview FALSE "qad" "Gui;OpenGL;Xml" "qad_widgets;qad_utils;${OPENGL_LIBRARIES}")
shstk_qad_install("qad" FALSE qglview "${out_HDR}" "${out_QM}")