FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui QtXml QtWebKit QtOpenGL QtNetwork)
ADD_DEFINITIONS("-DUSE_SALOME_STYLE")
SET(QT_SALOME_VERSION 4)
+ SET(SALOME_GUI_ENABLE_QTXWEBBROWSER TRUE)
ELSE()
FIND_PACKAGE(SalomeQt5 REQUIRED)
SET(QT_SALOME_VERSION 5)
- # Check that WebEngine component was found
- IF(Qt5WebEngine_FOUND)
- SET(SALOME_QT5HAVE_WEBENGINE TRUE)
- ELSE()
- MESSAGE("Qt5WebEngine is not found, SALOME internal help browser will be unavailable !")
- ADD_DEFINITIONS("-DDISABLE_QTXWEBBROWSER")
+ SET(SALOME_GUI_ENABLE_QTXWEBBROWSER TRUE)
+ IF(NOT "${QT_VERSION}" VERSION_LESS "5.6.0")
+ # Check that WebEngine component was found
+ IF(NOT Qt5WebEngine_FOUND)
+ SET(SALOME_GUI_ENABLE_QTXWEBBROWSER FALSE)
+ ADD_DEFINITIONS("-DDISABLE_QTXWEBBROWSER")
+ MESSAGE("Qt5WebEngine is not found, SALOME internal help browser will be unavailable !")
+ ENDIF()
ENDIF()
ENDIF()
##
ADD_SUBDIRECTORY(CASCatch)
ADD_SUBDIRECTORY(Qtx)
-IF(SALOME_BUILD_WITH_QT5 AND SALOME_QT5HAVE_WEBENGINE)
+IF(SALOME_GUI_ENABLE_QTXWEBBROWSER)
ADD_SUBDIRECTORY(HelpBrowser)
ENDIF()
ADD_SUBDIRECTORY(Style)
QtxWorkstackAction.h
)
-IF(SALOME_BUILD_WITH_QT5 AND SALOME_QT5HAVE_WEBENGINE)
+IF(SALOME_GUI_ENABLE_QTXWEBBROWSER)
SET(_moc_HEADERS ${_moc_HEADERS} QtxWebBrowser.h)
ENDIF()
QtxWorkstackAction.cxx
)
-IF(SALOME_BUILD_WITH_QT5 AND SALOME_QT5HAVE_WEBENGINE)
+IF(SALOME_GUI_ENABLE_QTXWEBBROWSER)
SET(_other_SOURCES ${_other_SOURCES} QtxWebBrowser.cxx)
ENDIF()