FIND_PACKAGE(SalomeOmniORB REQUIRED)
FIND_PACKAGE(SalomeOmniORBPy REQUIRED)
IF(SALOME_BUILD_GUI)
- FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui)
+ IF(NOT SALOME_GUI_BUILD_WITH_QT5)
+ FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui)
+ INCLUDE(${QT_USE_FILE})
+ ELSE()
+ FIND_PACKAGE(SalomeQt5 REQUIRED)
+ ENDIF()
ENDIF(SALOME_BUILD_GUI)
IF(SALOME_BUILD_DOC)
FIND_PACKAGE(SalomeDoxygen)
#
IF(SALOME_BUILD_GUI)
- INCLUDE(UseQt4Ext)
- INCLUDE(${QT_USE_FILE})
+ INCLUDE(UseQtExt)
ENDIF()
# --- options ---
IF(SALOME_BUILD_GUI)
# sources / moc wrappings
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
+ QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(ACISPluginGUI_SOURCES
ACISPlugin_GUI.cxx
TARGET_LINK_LIBRARIES(ACISPluginGUI ${_link_gui_LIBRARIES})
INSTALL(TARGETS ACISPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
# install resources
- QT4_INSTALL_TS_RESOURCES("${ACISPlugin_RESOURCES}" "${SALOME_ACISPLUGIN_INSTALL_RES_DATA}")
+ QT_INSTALL_TS_RESOURCES("${ACISPlugin_RESOURCES}" "${SALOME_ACISPLUGIN_INSTALL_RES_DATA}")
ENDIF()
# install headers