# Ensure a proper linker behavior:
CMAKE_POLICY(SET CMP0003 NEW)
+IF(WIN32)
+ CMAKE_POLICY(SET CMP0020 OLD) # disable automatic linking to qtmain.lib
+ENDIF(WIN32)
# Versioning
# ===========
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)
+ 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()
# PyQt
# List of targets in this project we want to make visible to the rest of the world.
# They all have to be INSTALL'd with the option "EXPORT ${PROJECT_NAME}TargetGroup"
SET(_${PROJECT_NAME}_exposed_targets
- caf CAM CASCatch DDS Event LightApp LogWindow ObjBrowser
+ CAM CASCatch DDS Event LightApp LogWindow ObjBrowser
QDS qtx SalomePrs SalomeStyle std SUITApp suit ViewerTools ViewerData
ImageComposer
)
+# CAF package (not compilable while TDocStd_Application::Formats is removed)
+IF(CAS_VERSION_STR VERSION_LESS "7.0.1")
+ LIST(APPEND _${PROJECT_NAME}_exposed_targets
+ caf)
+ENDIF()
+
IF(SALOME_USE_OCCVIEWER OR SALOME_USE_VTKVIEWER OR SALOME_USE_GLVIEWER)
LIST(APPEND _${PROJECT_NAME}_exposed_targets
OpenGLUtils)