X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FCMakeLists.txt;h=5769f19f316516f4b3a9950a293f4d032b95569b;hb=c7d72b1e9c2bf38f8cb27f9251c7a332401dc2fe;hp=f5b9729a72fb10b8d797d3fc5b1fb5b8914b7003;hpb=2f9cc8a307aeb75f6ee8c2c5c97f90acd5f3d53e;p=modules%2Fshaper.git diff --git a/src/XGUI/CMakeLists.txt b/src/XGUI/CMakeLists.txt index f5b9729a7..5769f19f3 100644 --- a/src/XGUI/CMakeLists.txt +++ b/src/XGUI/CMakeLists.txt @@ -1,22 +1,21 @@ -## Copyright (C) 2014-2017 CEA/DEN, EDF R&D -## -## This library is free software; you can redistribute it and/or -## modify it under the terms of the GNU Lesser General Public -## License as published by the Free Software Foundation; either -## version 2.1 of the License, or (at your option) any later version. -## -## This library is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -## Lesser General Public License for more details. -## -## You should have received a copy of the GNU Lesser General Public -## License along with this library; if not, write to the Free Software -## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -## -## See http:##www.salome-platform.org/ or -## email : webmaster.salome@opencascade.com -## +# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# INCLUDE(UseQtExt) @@ -26,9 +25,15 @@ INCLUDE_DIRECTORIES(${QT_INCLUDES}) # additional preprocessor / compiler flags ADD_DEFINITIONS(${QT_DEFINITIONS}) +SET(UPDATE_TRANSLATION OFF) + + + SET(PROJECT_HEADERS XGUI.h XGUI_ActionsMgr.h + XGUI_ActiveControlMgr.h + XGUI_ActiveControlSelector.h XGUI_ColorDialog.h XGUI_ContextMenuMgr.h XGUI_CustomPrs.h @@ -37,6 +42,8 @@ SET(PROJECT_HEADERS XGUI_Displayer.h XGUI_ErrorDialog.h XGUI_ErrorMgr.h + XGUI_FacesPanel.h + XGUI_FacesPanelSelector.h XGUI_HistoryMenu.h XGUI_MenuGroup.h XGUI_MenuMgr.h @@ -44,19 +51,27 @@ SET(PROJECT_HEADERS XGUI_ModuleConnector.h XGUI_ObjectsBrowser.h XGUI_OperationMgr.h + XGUI_PropertyDialog.h XGUI_PropertyPanel.h + XGUI_PropertyPanelSelector.h XGUI_QtEvents.h XGUI_SalomeConnector.h XGUI_Selection.h + XGUI_SelectionActivate.h XGUI_SelectionMgr.h XGUI_Tools.h + XGUI_TransparencyWidget.h XGUI_ViewerProxy.h XGUI_Workshop.h XGUI_WorkshopListener.h + XGUI_InspectionPanel.h + XGUI_CompressFiles.h ) SET(PROJECT_MOC_HEADERS XGUI_ActionsMgr.h + XGUI_ActiveControlMgr.h + XGUI_ActiveControlSelector.h XGUI_ColorDialog.h XGUI_ContextMenuMgr.h XGUI_DataModel.h @@ -64,15 +79,21 @@ SET(PROJECT_MOC_HEADERS XGUI_Displayer.h XGUI_ErrorDialog.h XGUI_ErrorMgr.h + XGUI_FacesPanel.h + XGUI_FacesPanelSelector.h XGUI_HistoryMenu.h XGUI_ModuleConnector.h XGUI_ObjectsBrowser.h XGUI_OperationMgr.h + XGUI_PropertyDialog.h XGUI_PropertyPanel.h + XGUI_PropertyPanelSelector.h XGUI_SelectionMgr.h + XGUI_TransparencyWidget.h XGUI_ViewerProxy.h XGUI_Workshop.h XGUI_WorkshopListener.h + XGUI_InspectionPanel.h ) # sources / moc wrappings @@ -80,6 +101,7 @@ QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS}) SET(PROJECT_SOURCES XGUI_ActionsMgr.cpp + XGUI_ActiveControlMgr.cpp XGUI_ColorDialog.cpp XGUI_ContextMenuMgr.cpp XGUI_CustomPrs.cpp @@ -88,6 +110,8 @@ SET(PROJECT_SOURCES XGUI_Displayer.cpp XGUI_ErrorDialog.cpp XGUI_ErrorMgr.cpp + XGUI_FacesPanel.cpp + XGUI_FacesPanelSelector.cpp XGUI_HistoryMenu.cpp XGUI_MenuGroup.cpp XGUI_MenuMgr.cpp @@ -95,15 +119,21 @@ SET(PROJECT_SOURCES XGUI_ModuleConnector.cpp XGUI_ObjectsBrowser.cpp XGUI_OperationMgr.cpp + XGUI_PropertyDialog.cpp XGUI_PropertyPanel.cpp + XGUI_PropertyPanelSelector.cpp XGUI_QtEvents.cpp XGUI_SalomeConnector.cpp XGUI_Selection.cpp + XGUI_SelectionActivate.cpp XGUI_SelectionMgr.cpp XGUI_Tools.cpp + XGUI_TransparencyWidget.cpp XGUI_ViewerProxy.cpp XGUI_Workshop.cpp XGUI_WorkshopListener.cpp + XGUI_InspectionPanel.cpp + XGUI_CompressFiles.cpp ) SET(PROJECT_RESOURCES @@ -124,9 +154,8 @@ SET(PROJECT_LIBRARIES ModelAPI ModuleBase ${QT_LIBRARIES} - ${CAS_VIEWER} - ${CAS_KERNEL} - ${CAS_SHAPE} + ${OpenCASCADE_FoundationClasses_LIBRARIES} + ${OpenCASCADE_Visualization_LIBRARIES} ${PYTHON_LIBRARIES} ${PyConsole} ${PyInterp} @@ -146,19 +175,26 @@ ELSE() ENDIF() QT_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES}) -#QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) -# QT4_CREATE_TRANSLATION(QM_RESOURCES -# ${PROJECT_SOURCES} -# ${TEXT_RESOURCES} -# OPTIONS -extensions cpp -no-recursive -# ) + + + +IF (${UPDATE_TRANSLATION}) + SET(PROJECT_FILES ${PROJECT_SOURCES} ${ROJECT_HEADERS} ) + QT5_CREATE_TRANSLATION(QM_RESOURCES + ${PROJECT_FILES} + ${TEXT_RESOURCES} + OPTIONS -extensions cpp -no-recursive + ) +ELSE(${UPDATE_TRANSLATION}) + QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) +ENDIF(${UPDATE_TRANSLATION}) SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES}) #SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES}) SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES} ${PREFERENCES_XML}) -ADD_DEFINITIONS( -DXGUI_EXPORTS ${CAS_DEFINITIONS} ) +ADD_DEFINITIONS( -DXGUI_EXPORTS ${OpenCASCADE_DEFINITIONS} -D_CRT_SECURE_NO_WARNINGS) SET(PROJECT_INCLUDES ${PROJECT_SOURCE_DIR}/src/Events @@ -167,7 +203,7 @@ SET(PROJECT_INCLUDES ${PROJECT_SOURCE_DIR}/src/GeomAPI ${PROJECT_SOURCE_DIR}/src/ModuleBase ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI - ${CAS_INCLUDE_DIRS} + ${OpenCASCADE_INCLUDE_DIR} ${SUIT_INCLUDE}) IF(${HAVE_SALOME}) @@ -180,7 +216,7 @@ ENDIF(NOT ${HAVE_SALOME}) IF(TKTInspector) message("TINSPECTOR is defined") - SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} ${TKTInspector} ${TKVInspector}) + SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} ${TKTInspectorAPI} ${TKTInspector} ${TKTreeModel} ${TKVInspector}) SET(PROJECT_INCLUDES ${PROJECT_INCLUDES} ${TINSPECTOR_INCLUDE_DIR}) ADD_DEFINITIONS(-DTINSPECTOR)