add option to switch between old and new OpenGL classes of Qt

This commit is contained in:
wmayer
2017-03-08 16:11:20 +01:00
parent caee7cae1c
commit c17e9a2964
2 changed files with 70 additions and 0 deletions

View File

@@ -177,6 +177,14 @@ set_property(CACHE FREECAD_USE_OCC_VARIANT PROPERTY STRINGS
"Community Edition"
)
if (BUILD_QT5)
OPTION(FREECAD_USE_QTOPENGL_WIDGET "Replace QGLWidget with QOpenGLWidget." OFF)
if (FREECAD_USE_QTOPENGL_WIDGET)
set(HAVE_QT5_OPENGL 1)
endif()
endif()
configure_file(${CMAKE_SOURCE_DIR}/src/QtOpenGL.h.cmake ${CMAKE_BINARY_DIR}/src/QtOpenGL.h)
if(APPLE)
OPTION(FREECAD_CREATE_MAC_APP "Create app bundle on install" OFF)