X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshersGUI%2FCMakeLists.txt;h=c0f1c390f9bc013f81ebaf9459072e84d60d95cd;hb=94b4f20a6565decaab6d3bab63b6236bb4dcdb37;hp=f01a226826a5eab945eb3c2c079da41b7535151d;hpb=251f8c052dd12dd29922210dc901b295fe999a0e;p=modules%2Fsmesh.git diff --git a/src/StdMeshersGUI/CMakeLists.txt b/src/StdMeshersGUI/CMakeLists.txt index f01a22682..c0f1c390f 100644 --- a/src/StdMeshersGUI/CMakeLists.txt +++ b/src/StdMeshersGUI/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2012-2015 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2012-2020 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,14 +17,13 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -INCLUDE(UseQt4Ext) +INCLUDE(UseQtExt) # --- options --- # additional include directories INCLUDE_DIRECTORIES( ${QT_INCLUDES} - ${VTK_INCLUDE_DIRS} - ${CAS_INCLUDE_DIRS} + ${OpenCASCADE_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS} ${GUI_INCLUDE_DIRS} @@ -48,7 +47,7 @@ INCLUDE_DIRECTORIES( # additional preprocessor / compiler flags ADD_DEFINITIONS( - ${CAS_DEFINITIONS} + ${OpenCASCADE_DEFINITIONS} ${BOOST_DEFINITIONS} ${OMNIORB_DEFINITIONS} ${QWT_DEFINITIONS} @@ -56,13 +55,12 @@ ADD_DEFINITIONS( # libraries to link to SET(_link_LIBRARIES - ${GUI_SalomeApp} - ${CAS_TKernel} - ${CAS_TKBO} - ${CAS_TKAdvTools} + ${OpenCASCADE_FoundationClasses_LIBRARIES} + ${OpenCASCADE_ModelingAlgorithms_LIBRARIES} ${QWT_LIBRARY} SalomeIDLSMESH SMESHFiltersSelection + SMESHEngine SMESH SMESHObject ) @@ -72,7 +70,6 @@ SET(_link_LIBRARIES # header files / to be processed by moc SET(_moc_HEADERS StdMeshersGUI_StdHypothesisCreator.h - StdMeshersGUI_DistrPreview.h StdMeshersGUI_DistrTable.h StdMeshersGUI_NbSegmentsCreator.h StdMeshersGUI_ObjectReferenceParamWdg.h @@ -82,8 +79,16 @@ SET(_moc_HEADERS StdMeshersGUI_SubShapeSelectorWdg.h StdMeshersGUI_CartesianParamCreator.h StdMeshersGUI_RadioButtonsGrpWdg.h + StdMeshersGUI_PropagationHelperWdg.h + StdMeshersGUI_NameCheckableGrpWdg.h ) +IF(SALOME_USE_PLOT2DVIEWER) + LIST(APPEND _moc_HEADERS + StdMeshersGUI_DistrPreview.h + ) +ENDIF() + # header files / no moc processing SET(_other_HEADERS SMESH_StdMeshersGUI.hxx @@ -95,13 +100,12 @@ SET(StdMeshersGUI_HEADERS ${_moc_HEADERS} ${_other_HEADERS}) # --- sources --- # sources / moc wrappings -QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) +QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS}) # sources / static SET(_other_SOURCES StdMeshersGUI.cxx StdMeshersGUI_StdHypothesisCreator.cxx - StdMeshersGUI_DistrPreview.cxx StdMeshersGUI_DistrTable.cxx StdMeshersGUI_NbSegmentsCreator.cxx StdMeshersGUI_ObjectReferenceParamWdg.cxx @@ -111,8 +115,16 @@ SET(_other_SOURCES StdMeshersGUI_SubShapeSelectorWdg.cxx StdMeshersGUI_CartesianParamCreator.cxx StdMeshersGUI_RadioButtonsGrpWdg.cxx + StdMeshersGUI_PropagationHelperWdg.cxx + StdMeshersGUI_NameCheckableGrpWdg.cxx ) +IF(SALOME_USE_PLOT2DVIEWER) + LIST(APPEND _other_SOURCES + StdMeshersGUI_DistrPreview.cxx + ) +ENDIF() + # sources / to compile SET(StdMeshersGUI_SOURCES ${_other_SOURCES} ${_moc_SOURCES}) @@ -133,4 +145,4 @@ TARGET_LINK_LIBRARIES(StdMeshersGUI ${_link_LIBRARIES} ) INSTALL(TARGETS StdMeshersGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(FILES ${StdMeshersGUI_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) -QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_SMESH_INSTALL_RES_DATA}") +QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_SMESH_INSTALL_RES_DATA}")