X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FQtx%2FCMakeLists.txt;h=ad1337ffc18e4aa47753c5d305fe0bf4e354330e;hb=0f9dfaa83b994c9d7fdd893f418395fad145f388;hp=32df69661a4269ebccbe3ef6dae1df02b9ce36dd;hpb=ee2a935cbc626294e620f467a24bbc6c21d1b1c7;p=modules%2Fgui.git diff --git a/src/Qtx/CMakeLists.txt b/src/Qtx/CMakeLists.txt index 32df69661..ad1337ffc 100755 --- a/src/Qtx/CMakeLists.txt +++ b/src/Qtx/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2012-2015 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2012-2016 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -17,7 +17,7 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -INCLUDE(UseQt4Ext) +INCLUDE(UseQtExt) # --- options --- @@ -72,16 +72,20 @@ SET(_moc_HEADERS QtxSlider.h QtxSplash.h QtxToolBar.h + QtxToolButton.h QtxToolTip.h QtxTreeView.h QtxValidator.h - QtxWebBrowser.h QtxWorkspace.h QtxWorkspaceAction.h QtxWorkstack.h QtxWorkstackAction.h ) +IF(SALOME_GUI_ENABLE_QTXWEBBROWSER) + SET(_moc_HEADERS ${_moc_HEADERS} QtxWebBrowser.h) +ENDIF() + # obsolete files: not migrated to Qt4 # _moc_HEADERS << QtxListBox.h QtxTable.h # TODO: migrate or remove? @@ -111,11 +115,11 @@ SET(_ts_RESOURCES resources/Qtx_msg_fr.ts # --- sources --- -# sources / rcc wrappings -QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES}) - # sources / moc wrappings -QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) +QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS}) + +# sources / rcc wrappings +QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES}) # sources / static SET(_other_SOURCES @@ -161,17 +165,21 @@ SET(_other_SOURCES QtxSlider.cxx QtxSplash.cxx QtxToolBar.cxx + QtxToolButton.cxx QtxToolTip.cxx QtxTranslator.cxx QtxTreeView.cxx QtxValidator.cxx - QtxWebBrowser.cxx QtxWorkspace.cxx QtxWorkspaceAction.cxx QtxWorkstack.cxx QtxWorkstackAction.cxx ) +IF(SALOME_GUI_ENABLE_QTXWEBBROWSER) + SET(_other_SOURCES ${_other_SOURCES} QtxWebBrowser.cxx) +ENDIF() + # obsolete files: not migrated to Qt4 # _other_SOURCES << QtxListBox.cxx QtxTable.cxx # TODO: migrate or remove? @@ -186,4 +194,4 @@ TARGET_LINK_LIBRARIES(qtx ${_link_LIBRARIES}) INSTALL(TARGETS qtx EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(FILES ${qtx_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) -QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}") +QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")