[bos #44003] fixed W10 compilation

This commit is contained in:
Martin Bernhard 2025-01-09 16:14:24 +00:00
parent 4e3a6d188b
commit 6f397a6da4
13 changed files with 1489 additions and 1496 deletions

View File

@ -1,78 +1,77 @@
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE # Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version. # 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, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
${OpenCASCADE_INCLUDE_DIR} ${OpenCASCADE_INCLUDE_DIR}
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/Driver ${PROJECT_SOURCE_DIR}/src/Driver
${PROJECT_SOURCE_DIR}/src/SMDS ${PROJECT_SOURCE_DIR}/src/SMDS
${PROJECT_SOURCE_DIR}/src/SMESHUtils ${PROJECT_SOURCE_DIR}/src/SMESHUtils
${PROJECT_SOURCE_DIR}/src/SMESHDS ${PROJECT_SOURCE_DIR}/src/SMESHDS
) )
# additional preprocessor / compiler flags # additional preprocessor / compiler flags
ADD_DEFINITIONS( ADD_DEFINITIONS(
${OpenCASCADE_DEFINITIONS} ${OpenCASCADE_DEFINITIONS}
${BOOST_DEFINITIONS} ${BOOST_DEFINITIONS}
) )
# libraries to link to # libraries to link to
SET(_link_LIBRARIES SET(_link_LIBRARIES
${OpenCASCADE_KERNEL} ${OpenCASCADE_KERNEL}
${KERNEL_SALOMEBasics} ${KERNEL_SALOMEBasics}
${KERNEL_SalomeIDLKERNEL} ${KERNEL_SalomeIDLKERNEL}
MeshDriver MeshDriver
) )
SET(_link_LIBRARIES_bin SET(_link_LIBRARIES_bin
${KERNEL_OpUtil} SALOMELocalTrace
${KERNEL_SALOMELocalTrace} ${KERNEL_SALOMEBasics}
${KERNEL_SALOMEBasics} ${KERNEL_SalomeIDLKERNEL}
${KERNEL_SalomeIDLKERNEL} MeshDriver
MeshDriver SMDS
SMDS )
)
# --- headers ---
# --- headers ---
# header files / no moc processing
# header files / no moc processing SET(MeshDriverDAT_HEADERS
SET(MeshDriverDAT_HEADERS DriverDAT_R_SMDS_Mesh.h
DriverDAT_R_SMDS_Mesh.h DriverDAT_W_SMDS_Mesh.h
DriverDAT_W_SMDS_Mesh.h SMESH_DriverDAT.hxx
SMESH_DriverDAT.hxx )
)
# --- sources ---
# --- sources ---
# sources / static
# sources / static SET(MeshDriverDAT_SOURCES
SET(MeshDriverDAT_SOURCES DriverDAT_R_SMDS_Mesh.cxx
DriverDAT_R_SMDS_Mesh.cxx DriverDAT_W_SMDS_Mesh.cxx
DriverDAT_W_SMDS_Mesh.cxx )
)
# --- rules ---
# --- rules ---
ADD_LIBRARY(MeshDriverDAT ${MeshDriverDAT_SOURCES})
ADD_LIBRARY(MeshDriverDAT ${MeshDriverDAT_SOURCES}) TARGET_LINK_LIBRARIES(MeshDriverDAT ${_link_LIBRARIES} )
TARGET_LINK_LIBRARIES(MeshDriverDAT ${_link_LIBRARIES} ) INSTALL(TARGETS MeshDriverDAT EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(TARGETS MeshDriverDAT EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${MeshDriverDAT_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
INSTALL(FILES ${MeshDriverDAT_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})

View File

@ -1,88 +1,87 @@
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE # Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version. # 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, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${MEDCOUPLING_INCLUDE_DIRS} ${MEDCOUPLING_INCLUDE_DIRS}
${MEDFILE_INCLUDE_DIRS} ${MEDFILE_INCLUDE_DIRS}
${HDF5_INCLUDE_DIRS} ${HDF5_INCLUDE_DIRS}
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
${OpenCASCADE_INCLUDE_DIR} ${OpenCASCADE_INCLUDE_DIR}
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/MEDWrapper ${PROJECT_SOURCE_DIR}/src/MEDWrapper
${PROJECT_SOURCE_DIR}/src/Driver ${PROJECT_SOURCE_DIR}/src/Driver
${PROJECT_SOURCE_DIR}/src/SMDS ${PROJECT_SOURCE_DIR}/src/SMDS
${PROJECT_SOURCE_DIR}/src/SMESHUtils ${PROJECT_SOURCE_DIR}/src/SMESHUtils
${PROJECT_SOURCE_DIR}/src/SMESHDS ${PROJECT_SOURCE_DIR}/src/SMESHDS
) )
# additional preprocessor / compiler flags # additional preprocessor / compiler flags
ADD_DEFINITIONS( ADD_DEFINITIONS(
${HDF5_DEFINITIONS} ${HDF5_DEFINITIONS}
${OpenCASCADE_DEFINITIONS} ${OpenCASCADE_DEFINITIONS}
${BOOST_DEFINITIONS} ${BOOST_DEFINITIONS}
) )
# libraries to link to # libraries to link to
SET(_link_LIBRARIES SET(_link_LIBRARIES
${Boost_LIBRARIES} ${Boost_LIBRARIES}
MeshDriver MeshDriver
MEDWrapper MEDWrapper
) )
SET(_link_LIBRARIES_bin SET(_link_LIBRARIES_bin
${_link_LIBRARIES} ${_link_LIBRARIES}
${KERNEL_OpUtil} SALOMELocalTrace
${KERNEL_SALOMELocalTrace} ${KERNEL_SALOMEBasics}
${KERNEL_SALOMEBasics} ${KERNEL_SalomeIDLKERNEL}
${KERNEL_SalomeIDLKERNEL} SMDS
SMDS SMESHDS
SMESHDS )
)
# --- headers ---
# --- headers ---
# header files / no moc processing
# header files / no moc processing SET(MeshDriverMED_HEADERS
SET(MeshDriverMED_HEADERS DriverMED.hxx
DriverMED.hxx DriverMED_R_SMESHDS_Mesh.h
DriverMED_R_SMESHDS_Mesh.h DriverMED_W_SMESHDS_Mesh.h
DriverMED_W_SMESHDS_Mesh.h DriverMED_Family.h
DriverMED_Family.h DriverMED_W_Field.h
DriverMED_W_Field.h SMESH_DriverMED.hxx
SMESH_DriverMED.hxx )
)
# --- sources ---
# --- sources ---
# sources / static
# sources / static SET(MeshDriverMED_SOURCES
SET(MeshDriverMED_SOURCES DriverMED_R_SMESHDS_Mesh.cxx
DriverMED_R_SMESHDS_Mesh.cxx DriverMED_W_SMESHDS_Mesh.cxx
DriverMED_W_SMESHDS_Mesh.cxx DriverMED_Family.cxx
DriverMED_Family.cxx DriverMED_W_Field.cxx
DriverMED_W_Field.cxx )
)
# --- rules ---
# --- rules ---
ADD_LIBRARY(MeshDriverMED ${MeshDriverMED_SOURCES})
ADD_LIBRARY(MeshDriverMED ${MeshDriverMED_SOURCES}) TARGET_LINK_LIBRARIES(MeshDriverMED ${_link_LIBRARIES} )
TARGET_LINK_LIBRARIES(MeshDriverMED ${_link_LIBRARIES} ) INSTALL(TARGETS MeshDriverMED EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(TARGETS MeshDriverMED EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${MeshDriverMED_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
INSTALL(FILES ${MeshDriverMED_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})

View File

@ -1,84 +1,83 @@
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE # Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version. # 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, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
${OpenCASCADE_INCLUDE_DIR} ${OpenCASCADE_INCLUDE_DIR}
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/Driver ${PROJECT_SOURCE_DIR}/src/Driver
${PROJECT_SOURCE_DIR}/src/SMDS ${PROJECT_SOURCE_DIR}/src/SMDS
${PROJECT_SOURCE_DIR}/src/SMESHUtils ${PROJECT_SOURCE_DIR}/src/SMESHUtils
${PROJECT_SOURCE_DIR}/src/SMESH ${PROJECT_SOURCE_DIR}/src/SMESH
) )
# additional preprocessor / compiler flags # additional preprocessor / compiler flags
ADD_DEFINITIONS( ADD_DEFINITIONS(
${OpenCASCADE_DEFINITIONS} ${OpenCASCADE_DEFINITIONS}
${BOOST_DEFINITIONS} ${BOOST_DEFINITIONS}
) )
# libraries to link to # libraries to link to
SET(_link_LIBRARIES SET(_link_LIBRARIES
${OpenCASCADE_FoundationClasses_LIBRARIES} ${OpenCASCADE_FoundationClasses_LIBRARIES}
${OpenCASCADE_DataExchange_LIBRARIES} ${OpenCASCADE_DataExchange_LIBRARIES}
${OpenCASCADE_ModelingAlgorithms_LIBRARIES} ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
${KERNEL_SALOMEBasics} ${KERNEL_SALOMEBasics}
MeshDriver MeshDriver
SMDS SMDS
SMESHUtils SMESHUtils
) )
SET(_link_LIBRARIES_bin SET(_link_LIBRARIES_bin
${KERNEL_OpUtil} SALOMELocalTrace
${KERNEL_SALOMELocalTrace} ${KERNEL_SALOMEBasics}
${KERNEL_SALOMEBasics} ${KERNEL_SalomeIDLKERNEL}
${KERNEL_SalomeIDLKERNEL} ${OpenCASCADE_FoundationClasses_LIBRARIES}
${OpenCASCADE_FoundationClasses_LIBRARIES} ${OpenCASCADE_DataExchange_LIBRARIES}
${OpenCASCADE_DataExchange_LIBRARIES} ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
${OpenCASCADE_ModelingAlgorithms_LIBRARIES} MeshDriver
MeshDriver SMDS
SMDS )
)
# --- headers ---
# --- headers ---
# header files / no moc processing
# header files / no moc processing SET(MeshDriverSTL_HEADERS
SET(MeshDriverSTL_HEADERS DriverSTL_R_SMDS_Mesh.h
DriverSTL_R_SMDS_Mesh.h DriverSTL_W_SMDS_Mesh.h
DriverSTL_W_SMDS_Mesh.h SMESH_DriverSTL.hxx
SMESH_DriverSTL.hxx )
)
# --- sources ---
# --- sources ---
# sources / static
# sources / static SET(MeshDriverSTL_SOURCES
SET(MeshDriverSTL_SOURCES DriverSTL_R_SMDS_Mesh.cxx
DriverSTL_R_SMDS_Mesh.cxx DriverSTL_W_SMDS_Mesh.cxx
DriverSTL_W_SMDS_Mesh.cxx )
)
# --- rules ---
# --- rules ---
ADD_LIBRARY(MeshDriverSTL ${MeshDriverSTL_SOURCES})
ADD_LIBRARY(MeshDriverSTL ${MeshDriverSTL_SOURCES}) TARGET_LINK_LIBRARIES(MeshDriverSTL ${_link_LIBRARIES} )
TARGET_LINK_LIBRARIES(MeshDriverSTL ${_link_LIBRARIES} ) INSTALL(TARGETS MeshDriverSTL EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(TARGETS MeshDriverSTL EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${MeshDriverSTL_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
INSTALL(FILES ${MeshDriverSTL_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})

View File

@ -1,84 +1,83 @@
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE # Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version. # 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, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
${OpenCASCADE_INCLUDE_DIR} ${OpenCASCADE_INCLUDE_DIR}
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/Driver ${PROJECT_SOURCE_DIR}/src/Driver
${PROJECT_SOURCE_DIR}/src/SMDS ${PROJECT_SOURCE_DIR}/src/SMDS
${PROJECT_SOURCE_DIR}/src/SMESHUtils ${PROJECT_SOURCE_DIR}/src/SMESHUtils
${PROJECT_SOURCE_DIR}/src/SMESHDS ${PROJECT_SOURCE_DIR}/src/SMESHDS
) )
# additional preprocessor / compiler flags # additional preprocessor / compiler flags
ADD_DEFINITIONS( ADD_DEFINITIONS(
${OpenCASCADE_DEFINITIONS} ${OpenCASCADE_DEFINITIONS}
${BOOST_DEFINITIONS} ${BOOST_DEFINITIONS}
) )
# libraries to link to # libraries to link to
SET(_link_LIBRARIES SET(_link_LIBRARIES
${OpenCASCADE_KERNEL} ${OpenCASCADE_KERNEL}
${KERNEL_SALOMEBasics} ${KERNEL_SALOMEBasics}
MeshDriver MeshDriver
) )
SET(_link_LIBRARIES_bin SET(_link_LIBRARIES_bin
${KERNEL_OpUtil} SALOMELocalTrace
${KERNEL_SALOMELocalTrace} ${KERNEL_SALOMEBasics}
${KERNEL_SALOMEBasics} ${KERNEL_SalomeIDLKERNEL}
${KERNEL_SalomeIDLKERNEL} MeshDriver
MeshDriver SMDS
SMDS )
)
# --- headers ---
# --- headers ---
# header files / no moc processing
# header files / no moc processing SET(MeshDriverUNV_HEADERS
SET(MeshDriverUNV_HEADERS DriverUNV_R_SMDS_Mesh.h
DriverUNV_R_SMDS_Mesh.h DriverUNV_W_SMDS_Mesh.h
DriverUNV_W_SMDS_Mesh.h SMESH_DriverUNV.hxx
SMESH_DriverUNV.hxx )
)
# --- sources ---
# --- sources ---
# sources / static
# sources / static SET(MeshDriverUNV_SOURCES
SET(MeshDriverUNV_SOURCES DriverUNV_R_SMDS_Mesh.cxx
DriverUNV_R_SMDS_Mesh.cxx DriverUNV_W_SMDS_Mesh.cxx
DriverUNV_W_SMDS_Mesh.cxx UNV_Utilities.cxx
UNV_Utilities.cxx UNV164_Structure.cxx
UNV164_Structure.cxx UNV2411_Structure.cxx
UNV2411_Structure.cxx UNV2412_Structure.cxx
UNV2412_Structure.cxx UNV2420_Structure.cxx
UNV2420_Structure.cxx UNV2417_Structure.cxx
UNV2417_Structure.cxx
)
)
# --- rules ---
# --- rules ---
ADD_LIBRARY(MeshDriverUNV ${MeshDriverUNV_SOURCES})
ADD_LIBRARY(MeshDriverUNV ${MeshDriverUNV_SOURCES}) TARGET_LINK_LIBRARIES(MeshDriverUNV ${_link_LIBRARIES} )
TARGET_LINK_LIBRARIES(MeshDriverUNV ${_link_LIBRARIES} ) INSTALL(TARGETS MeshDriverUNV EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(TARGETS MeshDriverUNV EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${MeshDriverUNV_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
INSTALL(FILES ${MeshDriverUNV_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})

View File

@ -1,89 +1,89 @@
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE # Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version. # 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, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
${HDF5_INCLUDE_DIRS} ${HDF5_INCLUDE_DIRS}
${MEDFILE_INCLUDE_DIRS} ${MEDFILE_INCLUDE_DIRS}
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
${MEDCOUPLING_INCLUDE_DIRS} ${MEDCOUPLING_INCLUDE_DIRS}
) )
# additional preprocessor / compiler flags # additional preprocessor / compiler flags
ADD_DEFINITIONS( ADD_DEFINITIONS(
${BOOST_DEFINITIONS} ${BOOST_DEFINITIONS}
${HDF5_DEFINITIONS} ${HDF5_DEFINITIONS}
) )
SET(_link_LIBRARIES SET(_link_LIBRARIES
${Boost_LIBRARIES} ${Boost_LIBRARIES}
${HDF5_LIBS} ${HDF5_LIBS}
${MEDFILE_C_LIBRARIES} ${MEDFILE_C_LIBRARIES}
${KERNEL_SALOMELocalTrace} SALOMELocalTrace
${MEDCoupling_medloader} ${MEDCoupling_medloader}
) )
# --- headers --- # --- headers ---
# header files / no moc processing # header files / no moc processing
SET(MEDWrapper_HEADERS SET(MEDWrapper_HEADERS
MED_Algorithm.hxx MED_Algorithm.hxx
MED_Common.hxx MED_Common.hxx
MED_CoordUtils.hxx MED_CoordUtils.hxx
MED_Factory.hxx MED_Factory.hxx
MED_GaussDef.hxx MED_GaussDef.hxx
MED_GaussUtils.hxx MED_GaussUtils.hxx
MED_SharedPtr.hxx MED_SharedPtr.hxx
MED_SliceArray.hxx MED_SliceArray.hxx
MED_Structures.hxx MED_Structures.hxx
MED_TStructures.hxx MED_TStructures.hxx
MED_Utilities.hxx MED_Utilities.hxx
MED_Vector.hxx MED_Vector.hxx
MED_Wrapper.hxx MED_Wrapper.hxx
MED_WrapperDef.hxx MED_WrapperDef.hxx
) )
# --- sources --- # --- sources ---
# sources / static # sources / static
SET(MEDWrapper_SOURCES SET(MEDWrapper_SOURCES
MED_Algorithm.cxx MED_Algorithm.cxx
MED_Common.cxx MED_Common.cxx
MED_CoordUtils.cxx MED_CoordUtils.cxx
MED_Factory.cxx MED_Factory.cxx
MED_GaussDef.cxx MED_GaussDef.cxx
MED_GaussUtils.cxx MED_GaussUtils.cxx
MED_Structures.cxx MED_Structures.cxx
MED_Utilities.cxx MED_Utilities.cxx
MED_Wrapper.cxx MED_Wrapper.cxx
) )
# --- rules --- # --- rules ---
ADD_LIBRARY(MEDWrapper ${MEDWrapper_SOURCES}) ADD_LIBRARY(MEDWrapper ${MEDWrapper_SOURCES})
TARGET_LINK_LIBRARIES(MEDWrapper ${_link_LIBRARIES}) TARGET_LINK_LIBRARIES(MEDWrapper ${_link_LIBRARIES})
INSTALL(TARGETS MEDWrapper EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS MEDWrapper EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(mprint_version mprint_version.cxx) ADD_EXECUTABLE(mprint_version mprint_version.cxx)
TARGET_LINK_LIBRARIES(mprint_version ${MEDFILE_C_LIBRARIES}) TARGET_LINK_LIBRARIES(mprint_version ${MEDFILE_C_LIBRARIES})
INSTALL(TARGETS mprint_version EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS}) INSTALL(TARGETS mprint_version EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
INSTALL(FILES ${MEDWrapper_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) INSTALL(FILES ${MEDWrapper_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})

View File

@ -1,86 +1,86 @@
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE # Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version. # 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, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDES} ${QT_INCLUDES}
${OpenCASCADE_INCLUDE_DIR} ${OpenCASCADE_INCLUDE_DIR}
${PYTHON_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS}
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
${GUI_INCLUDE_DIRS} ${GUI_INCLUDE_DIRS}
${GEOM_INCLUDE_DIRS} ${GEOM_INCLUDE_DIRS}
${MEDFILE_INCLUDE_DIRS} ${MEDFILE_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/src/SMESHGUI ${PROJECT_SOURCE_DIR}/src/SMESHGUI
${PROJECT_BINARY_DIR}/idl ${PROJECT_BINARY_DIR}/idl
) )
# additional preprocessor / compiler flags # additional preprocessor / compiler flags
ADD_DEFINITIONS( ADD_DEFINITIONS(
${QT_DEFINITIONS} ${QT_DEFINITIONS}
${OpenCASCADE_DEFINITIONS} ${OpenCASCADE_DEFINITIONS}
${BOOST_DEFINITIONS} ${BOOST_DEFINITIONS}
${OMNIORB_DEFINITIONS} ${OMNIORB_DEFINITIONS}
) )
# libraries to link to # libraries to link to
SET(_link_LIBRARIES SET(_link_LIBRARIES
${KERNEL_SalomeIDLKernel} ${KERNEL_SalomeIDLKernel}
${KERNEL_SALOMELocalTrace} SALOMELocalTrace
${KERNEL_SalomeLifeCycleCORBA} ${KERNEL_SalomeLifeCycleCORBA}
${OpenCASCADE_ModelingData_LIBRARIES} ${OpenCASCADE_ModelingData_LIBRARIES}
${OpenCASCADE_Visualization_LIBRARIES} ${OpenCASCADE_Visualization_LIBRARIES}
${QT_LIBRARIES} ${QT_LIBRARIES}
${QT_MT_LIBS} ${QT_MT_LIBS}
${GUI_SalomeObject} ${GUI_SalomeObject}
${GUI_suit} ${GUI_suit}
SalomeIDLSMESH SalomeIDLSMESH
SMESH SMESH
) )
# --- headers --- # --- headers ---
# header files / to be processed by moc # header files / to be processed by moc
SET(PluginUtils_HEADERS SET(PluginUtils_HEADERS
GeomSelectionTools.h GeomSelectionTools.h
SMESH_PluginUtils.h SMESH_PluginUtils.h
SMESH_AdvOptionsWdg.h SMESH_AdvOptionsWdg.h
) )
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT_WRAP_MOC(_moc_SOURCES SMESH_AdvOptionsWdg.h) QT_WRAP_MOC(_moc_SOURCES SMESH_AdvOptionsWdg.h)
# sources / static # sources / static
SET(PluginUtils_SOURCES SET(PluginUtils_SOURCES
GeomSelectionTools.cxx GeomSelectionTools.cxx
SMESH_AdvOptionsWdg.cxx SMESH_AdvOptionsWdg.cxx
${_moc_SOURCES} ${_moc_SOURCES}
) )
# --- rules --- # --- rules ---
ADD_LIBRARY(PluginUtils ${PluginUtils_SOURCES}) ADD_LIBRARY(PluginUtils ${PluginUtils_SOURCES})
TARGET_LINK_LIBRARIES(PluginUtils ${_link_LIBRARIES} ) TARGET_LINK_LIBRARIES(PluginUtils ${_link_LIBRARIES} )
INSTALL(TARGETS PluginUtils EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS PluginUtils EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${PluginUtils_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) INSTALL(FILES ${PluginUtils_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})

View File

@ -1,128 +1,128 @@
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE # Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version. # 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, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
) )
# additional preprocessor / compiler flags # additional preprocessor / compiler flags
ADD_DEFINITIONS( ADD_DEFINITIONS(
${BOOST_DEFINITIONS} ${BOOST_DEFINITIONS}
) )
# libraries to link to # libraries to link to
SET(_link_LIBRARIES SET(_link_LIBRARIES
${KERNEL_SALOMELocalTrace} SALOMELocalTrace
${KERNEL_OpUtil} SALOMEException
VTK::CommonCore VTK::CommonCore
VTK::CommonDataModel VTK::CommonDataModel
) )
# --- headers --- # --- headers ---
# header files / no moc processing # header files / no moc processing
SET(SMDS_HEADERS SET(SMDS_HEADERS
ObjectPool.hxx ObjectPool.hxx
SMDSAbs_ElementType.hxx SMDSAbs_ElementType.hxx
SMDS_BallElement.hxx SMDS_BallElement.hxx
SMDS_CellOfNodes.hxx SMDS_CellOfNodes.hxx
SMDS_Downward.hxx SMDS_Downward.hxx
SMDS_EdgePosition.hxx SMDS_EdgePosition.hxx
SMDS_ElemIterator.hxx SMDS_ElemIterator.hxx
SMDS_ElementFactory.hxx SMDS_ElementFactory.hxx
SMDS_FaceOfNodes.hxx SMDS_FaceOfNodes.hxx
SMDS_FacePosition.hxx SMDS_FacePosition.hxx
SMDS_Iterator.hxx SMDS_Iterator.hxx
SMDS_IteratorOnIterators.hxx SMDS_IteratorOnIterators.hxx
SMDS_LinearEdge.hxx SMDS_LinearEdge.hxx
SMDS_Mesh.hxx SMDS_Mesh.hxx
SMDS_Mesh0DElement.hxx SMDS_Mesh0DElement.hxx
SMDS_MeshCell.hxx SMDS_MeshCell.hxx
SMDS_MeshEdge.hxx SMDS_MeshEdge.hxx
SMDS_MeshElement.hxx SMDS_MeshElement.hxx
SMDS_MeshFace.hxx SMDS_MeshFace.hxx
SMDS_MeshGroup.hxx SMDS_MeshGroup.hxx
SMDS_MeshInfo.hxx SMDS_MeshInfo.hxx
SMDS_MeshNode.hxx SMDS_MeshNode.hxx
SMDS_MeshObject.hxx SMDS_MeshObject.hxx
SMDS_MeshVolume.hxx SMDS_MeshVolume.hxx
SMDS_PolygonalFaceOfNodes.hxx SMDS_PolygonalFaceOfNodes.hxx
SMDS_Position.hxx SMDS_Position.hxx
SMDS_SetIterator.hxx SMDS_SetIterator.hxx
SMDS_SpacePosition.hxx SMDS_SpacePosition.hxx
SMDS_StdIterator.hxx SMDS_StdIterator.hxx
SMDS_TypeOfPosition.hxx SMDS_TypeOfPosition.hxx
SMDS_UnstructuredGrid.hxx SMDS_UnstructuredGrid.hxx
SMDS_VertexPosition.hxx SMDS_VertexPosition.hxx
SMDS_VolumeOfNodes.hxx SMDS_VolumeOfNodes.hxx
SMDS_VolumeTool.hxx SMDS_VolumeTool.hxx
SMDS_VtkCellIterator.hxx SMDS_VtkCellIterator.hxx
SMDS_ElementHolder.hxx SMDS_ElementHolder.hxx
SMESH_SMDS.hxx SMESH_SMDS.hxx
chrono.hxx chrono.hxx
) )
# --- sources --- # --- sources ---
# sources / static # sources / static
SET(SMDS_SOURCES SET(SMDS_SOURCES
SMDS_BallElement.cxx SMDS_BallElement.cxx
SMDS_Downward.cxx SMDS_Downward.cxx
SMDS_CellOfNodes.cxx SMDS_CellOfNodes.cxx
SMDS_ElementFactory.cxx SMDS_ElementFactory.cxx
SMDS_FaceOfNodes.cxx SMDS_FaceOfNodes.cxx
SMDS_FacePosition.cxx SMDS_FacePosition.cxx
SMDS_LinearEdge.cxx SMDS_LinearEdge.cxx
SMDS_MemoryLimit.cxx SMDS_MemoryLimit.cxx
SMDS_Mesh.cxx SMDS_Mesh.cxx
SMDS_MeshCell.cxx SMDS_MeshCell.cxx
SMDS_MeshElement.cxx SMDS_MeshElement.cxx
SMDS_MeshGroup.cxx SMDS_MeshGroup.cxx
SMDS_MeshNode.cxx SMDS_MeshNode.cxx
SMDS_MeshObject.cxx SMDS_MeshObject.cxx
SMDS_MeshVolume.cxx SMDS_MeshVolume.cxx
SMDS_PolygonalFaceOfNodes.cxx SMDS_PolygonalFaceOfNodes.cxx
SMDS_SpacePosition.cxx SMDS_SpacePosition.cxx
SMDS_UnstructuredGrid.cxx SMDS_UnstructuredGrid.cxx
SMDS_VolumeOfNodes.cxx SMDS_VolumeOfNodes.cxx
SMDS_VolumeTool.cxx SMDS_VolumeTool.cxx
SMDS_VtkCellIterator.cxx SMDS_VtkCellIterator.cxx
SMDS_ElementHolder.cxx SMDS_ElementHolder.cxx
chrono.cxx chrono.cxx
) )
# bin programs # bin programs
SET(SMDS_MemoryLimit_SOURCES SET(SMDS_MemoryLimit_SOURCES
SMDS_MemoryLimit.cxx SMDS_MemoryLimit.cxx
) )
# --- rules --- # --- rules ---
ADD_LIBRARY(SMDS ${SMDS_SOURCES}) ADD_LIBRARY(SMDS ${SMDS_SOURCES})
TARGET_LINK_LIBRARIES(SMDS ${_link_LIBRARIES} ) TARGET_LINK_LIBRARIES(SMDS ${_link_LIBRARIES} )
INSTALL(TARGETS SMDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS SMDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(SMDS_MemoryLimit ${SMDS_MemoryLimit_SOURCES}) ADD_EXECUTABLE(SMDS_MemoryLimit ${SMDS_MemoryLimit_SOURCES})
TARGET_LINK_LIBRARIES(SMDS_MemoryLimit ${_link_LIBRARIES}) TARGET_LINK_LIBRARIES(SMDS_MemoryLimit ${_link_LIBRARIES})
INSTALL(TARGETS SMDS_MemoryLimit EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS}) INSTALL(TARGETS SMDS_MemoryLimit EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
INSTALL(FILES ${SMDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) INSTALL(FILES ${SMDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})

View File

@ -1,99 +1,98 @@
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE # Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version. # 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, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
${MEDFILE_INCLUDE_DIRS} ${MEDFILE_INCLUDE_DIRS}
${GEOM_INCLUDE_DIRS} ${GEOM_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
${OpenCASCADE_INCLUDE_DIR} ${OpenCASCADE_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
${MEDCOUPLING_INCLUDE_DIRS} ${MEDCOUPLING_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/Controls ${PROJECT_SOURCE_DIR}/src/Controls
${PROJECT_SOURCE_DIR}/src/Driver ${PROJECT_SOURCE_DIR}/src/Driver
${PROJECT_SOURCE_DIR}/src/DriverDAT ${PROJECT_SOURCE_DIR}/src/DriverDAT
${PROJECT_SOURCE_DIR}/src/DriverMED ${PROJECT_SOURCE_DIR}/src/DriverMED
${PROJECT_SOURCE_DIR}/src/DriverUNV ${PROJECT_SOURCE_DIR}/src/DriverUNV
${PROJECT_SOURCE_DIR}/src/DriverSTL ${PROJECT_SOURCE_DIR}/src/DriverSTL
${PROJECT_SOURCE_DIR}/src/SMDS ${PROJECT_SOURCE_DIR}/src/SMDS
${PROJECT_SOURCE_DIR}/src/SMESHDS ${PROJECT_SOURCE_DIR}/src/SMESHDS
${PROJECT_SOURCE_DIR}/src/SMESH ${PROJECT_SOURCE_DIR}/src/SMESH
${PROJECT_SOURCE_DIR}/src/SMESHUtils ${PROJECT_SOURCE_DIR}/src/SMESHUtils
${PROJECT_SOURCE_DIR}/src/SMESH_I ${PROJECT_SOURCE_DIR}/src/SMESH_I
${PROJECT_BINARY_DIR}/idl ${PROJECT_BINARY_DIR}/idl
) )
# additional preprocessor / compiler flags # additional preprocessor / compiler flags
ADD_DEFINITIONS( ADD_DEFINITIONS(
${OMNIORB_DEFINITIONS} ${OMNIORB_DEFINITIONS}
${OpenCASCADE_DEFINITIONS} ${OpenCASCADE_DEFINITIONS}
${BOOST_DEFINITIONS} ${BOOST_DEFINITIONS}
) )
# libraries to link to # libraries to link to
SET(_link_LIBRARIES SET(_link_LIBRARIES
${KERNEL_SalomeLifeCycleCORBA} ${KERNEL_SalomeLifeCycleCORBA}
${KERNEL_SalomeNS} ${KERNEL_SalomeNS}
${KERNEL_OpUtil} ${KERNEL_SALOMEBasics}
${KERNEL_SALOMEBasics} ${KERNEL_SalomeContainer}
${KERNEL_SalomeContainer} ${KERNEL_SalomeHDFPersist}
${KERNEL_SalomeHDFPersist} ${KERNEL_SalomeGenericObj}
${KERNEL_SalomeGenericObj} ${KERNEL_Registry}
${KERNEL_Registry} ${KERNEL_ResourcesManager}
${KERNEL_ResourcesManager} ${KERNEL_SalomeResourcesManager}
${KERNEL_SalomeResourcesManager} ${KERNEL_SalomeNotification}
${KERNEL_SalomeNotification} ${KERNEL_SalomeIDLKERNEL}
${KERNEL_SalomeIDLKERNEL} SALOMELocalTrace
${KERNEL_SALOMELocalTrace} ${GEOM_NMTDS}
${GEOM_NMTDS} ${GEOM_SalomeIDLGEOM}
${GEOM_SalomeIDLGEOM} ${OpenCASCADE_KERNEL}
${OpenCASCADE_KERNEL} SalomeIDLSMESH
SalomeIDLSMESH SMDS
SMDS SMESHimpl
SMESHimpl SMESHDS
SMESHDS SMESHControls
SMESHControls SMESHEngine
SMESHEngine MEDWrapper
MEDWrapper )
)
# --- headers ---
# --- headers ---
# header files / no moc processing
# header files / no moc processing SET(SMESHClient_HEADERS
SET(SMESHClient_HEADERS SMESH_Client.hxx
SMESH_Client.hxx )
)
# --- sources ---
# --- sources ---
# sources / static
# sources / static SET(SMESHClient_SOURCES
SET(SMESHClient_SOURCES SMESH_Client.cxx
SMESH_Client.cxx )
)
# --- rules ---
# --- rules ---
ADD_LIBRARY(SMESHClient ${SMESHClient_SOURCES})
ADD_LIBRARY(SMESHClient ${SMESHClient_SOURCES}) TARGET_LINK_LIBRARIES(SMESHClient ${_link_LIBRARIES} )
TARGET_LINK_LIBRARIES(SMESHClient ${_link_LIBRARIES} ) INSTALL(TARGETS SMESHClient EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(TARGETS SMESHClient EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${SMESHClient_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
INSTALL(FILES ${SMESHClient_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})

View File

@ -1,97 +1,97 @@
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE # Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version. # 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, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
# --- options --- # --- options ---
# additional include directories # additional include directories
IF(SALOME_SMESH_USE_TBB) IF(SALOME_SMESH_USE_TBB)
SET(TBB_INCLUDES ${TBB_INCLUDE_DIRS}) SET(TBB_INCLUDES ${TBB_INCLUDE_DIRS})
ENDIF(SALOME_SMESH_USE_TBB) ENDIF(SALOME_SMESH_USE_TBB)
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
${OpenCASCADE_INCLUDE_DIR} ${OpenCASCADE_INCLUDE_DIR}
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/SMDS ${PROJECT_SOURCE_DIR}/src/SMDS
${PROJECT_SOURCE_DIR}/src/SMESHUtils ${PROJECT_SOURCE_DIR}/src/SMESHUtils
${TBB_INCLUDES} ${TBB_INCLUDES}
) )
# additional preprocessor / compiler flags # additional preprocessor / compiler flags
ADD_DEFINITIONS( ADD_DEFINITIONS(
${OpenCASCADE_DEFINITIONS} ${OpenCASCADE_DEFINITIONS}
${BOOST_DEFINITIONS} ${BOOST_DEFINITIONS}
) )
IF(SALOME_SMESH_USE_TBB) IF(SALOME_SMESH_USE_TBB)
SET(TBB_LIBS ${TBB_LIBRARIES}) SET(TBB_LIBS ${TBB_LIBRARIES})
ENDIF(SALOME_SMESH_USE_TBB) ENDIF(SALOME_SMESH_USE_TBB)
# libraries to link to # libraries to link to
SET(_link_LIBRARIES SET(_link_LIBRARIES
${OpenCASCADE_KERNEL} ${OpenCASCADE_KERNEL}
${OpenCASCADE_ModelingData_LIBRARIES} ${OpenCASCADE_ModelingData_LIBRARIES}
${KERNEL_SALOMELocalTrace} SALOMELocalTrace
SMDS SMDS
SMESHUtils SMESHUtils
${TBB_LIBS} ${TBB_LIBS}
) )
# --- headers --- # --- headers ---
# header files / no moc processing # header files / no moc processing
SET(SMESHDS_HEADERS SET(SMESHDS_HEADERS
SMESHDS_Document.hxx SMESHDS_Document.hxx
SMESHDS_Hypothesis.hxx SMESHDS_Hypothesis.hxx
SMESHDS_Mesh.hxx SMESHDS_Mesh.hxx
SMESHDS_Script.hxx SMESHDS_Script.hxx
SMESHDS_Command.hxx SMESHDS_Command.hxx
SMESHDS_CommandType.hxx SMESHDS_CommandType.hxx
SMESHDS_SubMesh.hxx SMESHDS_SubMesh.hxx
SMESHDS_GroupBase.hxx SMESHDS_GroupBase.hxx
SMESHDS_Group.hxx SMESHDS_Group.hxx
SMESHDS_GroupOnGeom.hxx SMESHDS_GroupOnGeom.hxx
SMESHDS_GroupOnFilter.hxx SMESHDS_GroupOnFilter.hxx
SMESH_SMESHDS.hxx SMESH_SMESHDS.hxx
SMESH_Controls.hxx SMESH_Controls.hxx
) )
# --- sources --- # --- sources ---
# sources / static # sources / static
SET(SMESHDS_SOURCES SET(SMESHDS_SOURCES
SMESHDS_Document.cxx SMESHDS_Document.cxx
SMESHDS_Hypothesis.cxx SMESHDS_Hypothesis.cxx
SMESHDS_Script.cxx SMESHDS_Script.cxx
SMESHDS_Command.cxx SMESHDS_Command.cxx
SMESHDS_SubMesh.cxx SMESHDS_SubMesh.cxx
SMESHDS_Mesh.cxx SMESHDS_Mesh.cxx
SMESHDS_GroupBase.cxx SMESHDS_GroupBase.cxx
SMESHDS_Group.cxx SMESHDS_Group.cxx
SMESHDS_GroupOnGeom.cxx SMESHDS_GroupOnGeom.cxx
SMESHDS_GroupOnFilter.cxx SMESHDS_GroupOnFilter.cxx
) )
# --- rules --- # --- rules ---
ADD_LIBRARY(SMESHDS ${SMESHDS_SOURCES}) ADD_LIBRARY(SMESHDS ${SMESHDS_SOURCES})
TARGET_LINK_LIBRARIES(SMESHDS ${_link_LIBRARIES} ) TARGET_LINK_LIBRARIES(SMESHDS ${_link_LIBRARIES} )
INSTALL(TARGETS SMESHDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS SMESHDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${SMESHDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) INSTALL(FILES ${SMESHDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})

View File

@ -1,160 +1,159 @@
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE # Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version. # 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, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR} ${OpenCASCADE_INCLUDE_DIR}
${HDF5_INCLUDE_DIRS} ${HDF5_INCLUDE_DIRS}
${MEDFILE_INCLUDE_DIRS} ${MEDFILE_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
${GUI_INCLUDE_DIRS} ${GUI_INCLUDE_DIRS}
${GEOM_INCLUDE_DIRS} ${GEOM_INCLUDE_DIRS}
${MEDCOUPLING_INCLUDE_DIRS} ${MEDCOUPLING_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/Controls ${PROJECT_SOURCE_DIR}/src/Controls
${PROJECT_SOURCE_DIR}/src/SMDS ${PROJECT_SOURCE_DIR}/src/SMDS
${PROJECT_SOURCE_DIR}/src/SMESHDS ${PROJECT_SOURCE_DIR}/src/SMESHDS
${PROJECT_SOURCE_DIR}/src/SMESH_I ${PROJECT_SOURCE_DIR}/src/SMESH_I
${PROJECT_SOURCE_DIR}/src/MEDWrapper ${PROJECT_SOURCE_DIR}/src/MEDWrapper
${PROJECT_SOURCE_DIR}/src/Driver ${PROJECT_SOURCE_DIR}/src/Driver
${PROJECT_SOURCE_DIR}/src/DriverMED ${PROJECT_SOURCE_DIR}/src/DriverMED
${PROJECT_SOURCE_DIR}/src/DriverCGNS ${PROJECT_SOURCE_DIR}/src/DriverCGNS
${PROJECT_SOURCE_DIR}/src/SMESH ${PROJECT_SOURCE_DIR}/src/SMESH
${PROJECT_SOURCE_DIR}/src/SMESHUtils ${PROJECT_SOURCE_DIR}/src/SMESHUtils
${PROJECT_BINARY_DIR} ${PROJECT_BINARY_DIR}
${PROJECT_BINARY_DIR}/idl ${PROJECT_BINARY_DIR}/idl
) )
# additional preprocessor / compiler flags # additional preprocessor / compiler flags
ADD_DEFINITIONS( ADD_DEFINITIONS(
${OMNIORB_DEFINITIONS} ${OMNIORB_DEFINITIONS}
${OpenCASCADE_DEFINITIONS} ${OpenCASCADE_DEFINITIONS}
${BOOST_DEFINITIONS} ${BOOST_DEFINITIONS}
) )
IF(WIN32) IF(WIN32)
ADD_DEFINITIONS(-DNOGDI) ADD_DEFINITIONS(-DNOGDI)
ENDIF(WIN32) ENDIF(WIN32)
# libraries to link to # libraries to link to
SET(_link_LIBRARIES SET(_link_LIBRARIES
${Boost_LIBRARIES} ${Boost_LIBRARIES}
${KERNEL_OpUtil} ${KERNEL_SalomeNotification}
${KERNEL_SalomeNotification} ${KERNEL_ResourcesManager}
${KERNEL_ResourcesManager} ${KERNEL_SalomeResourcesManager}
${KERNEL_SalomeResourcesManager} ${KERNEL_SALOMEBasics}
${KERNEL_SALOMEBasics} ${KERNEL_SalomeContainer}
${KERNEL_SalomeContainer} ${KERNEL_SalomeNS}
${KERNEL_SalomeNS} ${KERNEL_Registry}
${KERNEL_Registry} ${KERNEL_SalomeHDFPersist}
${KERNEL_SalomeHDFPersist} ${KERNEL_SalomeLifeCycleCORBA}
${KERNEL_SalomeLifeCycleCORBA} ${KERNEL_TOOLSDS}
${KERNEL_TOOLSDS} ${KERNEL_SalomeGenericObj}
${KERNEL_SalomeGenericObj} ${KERNEL_SalomeIDLKERNEL}
${KERNEL_SalomeIDLKERNEL} SALOMELocalTrace
${KERNEL_SALOMELocalTrace} ${KERNEL_SalomeKernelHelpers}
${KERNEL_SalomeKernelHelpers} ${KERNEL_SalomeDS}
${KERNEL_SalomeDS} ${KERNEL_SalomeCatalog}
${KERNEL_SalomeCatalog} ${OpenCASCADE_ApplicationFramework_LIBRARIES}
${OpenCASCADE_ApplicationFramework_LIBRARIES} ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
${OpenCASCADE_ModelingAlgorithms_LIBRARIES} ${GEOM_GEOMClient}
${GEOM_GEOMClient} ${GEOM_SalomeIDLGEOM}
${GEOM_SalomeIDLGEOM} VTK::IOLegacy
VTK::IOLegacy SalomeIDLSMESH
SalomeIDLSMESH SMESHimpl
SMESHimpl SMDS
SMDS SMESHDS
SMESHDS SMESHControls
SMESHControls MeshDriverMED
MeshDriverMED )
)
# --- headers ---
# --- headers ---
# header files / no moc processing
# header files / no moc processing SET(SMESHEngine_HEADERS
SET(SMESHEngine_HEADERS SMESH_Gen_i.hxx
SMESH_Gen_i.hxx SMESH_Gen_No_Session_i.hxx
SMESH_Gen_No_Session_i.hxx SMESH_Gen_Session_i.hxx
SMESH_Gen_Session_i.hxx SMESH_Algo_i.hxx
SMESH_Algo_i.hxx SMESH_0D_Algo_i.hxx
SMESH_0D_Algo_i.hxx SMESH_1D_Algo_i.hxx
SMESH_1D_Algo_i.hxx SMESH_2D_Algo_i.hxx
SMESH_2D_Algo_i.hxx SMESH_3D_Algo_i.hxx
SMESH_3D_Algo_i.hxx SMESH_subMesh_i.hxx
SMESH_subMesh_i.hxx SMESH_Mesh_i.hxx
SMESH_Mesh_i.hxx SMESH_Hypothesis_i.hxx
SMESH_Hypothesis_i.hxx SMESH_PythonDump.hxx
SMESH_PythonDump.hxx SMESH_Group_i.hxx
SMESH_Group_i.hxx SMESH_Filter_i.hxx
SMESH_Filter_i.hxx SMESH_MeshEditor_i.hxx
SMESH_MeshEditor_i.hxx SMESH_Pattern_i.hxx
SMESH_Pattern_i.hxx SMESH_2smeshpy.hxx
SMESH_2smeshpy.hxx SMESH_NoteBook.hxx
SMESH_NoteBook.hxx SMESH_Measurements_i.hxx
SMESH_Measurements_i.hxx SMESH_PreMeshInfo.hxx
SMESH_PreMeshInfo.hxx SMESH_MeshPartDS.hxx
SMESH_MeshPartDS.hxx SMESH.hxx
SMESH.hxx MG_ADAPT_i.hxx
MG_ADAPT_i.hxx SMESH_Homard_i.hxx
SMESH_Homard_i.hxx SMESH_SequentialMesh_i.hxx
SMESH_SequentialMesh_i.hxx SMESH_ParallelMesh_i.hxx
SMESH_ParallelMesh_i.hxx SMESH_Meshio.h
SMESH_Meshio.h )
)
# --- sources ---
# --- sources ---
# sources / static
# sources / static SET(SMESHEngine_SOURCES
SET(SMESHEngine_SOURCES SMESH_Gen_i.cxx
SMESH_Gen_i.cxx SMESH_Gen_i_1.cxx
SMESH_Gen_i_1.cxx SMESH_Gen_No_Session_i.cxx
SMESH_Gen_No_Session_i.cxx SMESH_Gen_Session_i.cxx
SMESH_Gen_Session_i.cxx SMESH_PythonDump.cxx
SMESH_PythonDump.cxx SMESH_Mesh_i.cxx
SMESH_Mesh_i.cxx SMESH_subMesh_i.cxx
SMESH_subMesh_i.cxx SMESH_MeshEditor_i.cxx
SMESH_MeshEditor_i.cxx SMESH_Hypothesis_i.cxx
SMESH_Hypothesis_i.cxx SMESH_Algo_i.cxx
SMESH_Algo_i.cxx SMESH_0D_Algo_i.cxx
SMESH_0D_Algo_i.cxx SMESH_1D_Algo_i.cxx
SMESH_1D_Algo_i.cxx SMESH_2D_Algo_i.cxx
SMESH_2D_Algo_i.cxx SMESH_3D_Algo_i.cxx
SMESH_3D_Algo_i.cxx SMESH_Filter_i.cxx
SMESH_Filter_i.cxx SMESH_Group_i.cxx
SMESH_Group_i.cxx SMESH_Pattern_i.cxx
SMESH_Pattern_i.cxx SMESH_2smeshpy.cxx
SMESH_2smeshpy.cxx SMESH_NoteBook.cxx
SMESH_NoteBook.cxx SMESH_Measurements_i.cxx
SMESH_Measurements_i.cxx SMESH_PreMeshInfo.cxx
SMESH_PreMeshInfo.cxx MG_ADAPT_i.cxx
MG_ADAPT_i.cxx SMESH_Homard_i.cxx
SMESH_Homard_i.cxx SMESH_ParallelMesh_i.cxx
SMESH_ParallelMesh_i.cxx SMESH_Meshio.cxx
SMESH_Meshio.cxx )
)
# --- rules ---
# --- rules ---
ADD_LIBRARY(SMESHEngine ${SMESHEngine_SOURCES})
ADD_LIBRARY(SMESHEngine ${SMESHEngine_SOURCES}) TARGET_LINK_LIBRARIES(SMESHEngine ${_link_LIBRARIES} )
TARGET_LINK_LIBRARIES(SMESHEngine ${_link_LIBRARIES} ) INSTALL(TARGETS SMESHEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(TARGETS SMESHEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${SMESHEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
INSTALL(FILES ${SMESHEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})

View File

@ -1,114 +1,114 @@
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE # Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version. # 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, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
INCLUDE(${SWIG_USE_FILE}) INCLUDE(${SWIG_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDES} ${QT_INCLUDES}
${PYTHON_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS}
${OpenCASCADE_INCLUDE_DIR} ${OpenCASCADE_INCLUDE_DIR}
${OGL_INCLUDE_DIRS} ${OGL_INCLUDE_DIRS}
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
${GUI_INCLUDE_DIRS} ${GUI_INCLUDE_DIRS}
${MEDFILE_INCLUDE_DIRS} ${MEDFILE_INCLUDE_DIRS}
${GEOM_INCLUDE_DIRS} ${GEOM_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/src/SMESHGUI ${PROJECT_SOURCE_DIR}/src/SMESHGUI
${PROJECT_SOURCE_DIR}/src/OBJECT ${PROJECT_SOURCE_DIR}/src/OBJECT
${PROJECT_SOURCE_DIR}/src/SMESHDS ${PROJECT_SOURCE_DIR}/src/SMESHDS
${PROJECT_SOURCE_DIR}/src/SMDS ${PROJECT_SOURCE_DIR}/src/SMDS
${PROJECT_BINARY_DIR}/idl ${PROJECT_BINARY_DIR}/idl
) )
# additional preprocessor / compiler flags # additional preprocessor / compiler flags
ADD_DEFINITIONS( ADD_DEFINITIONS(
${OpenCASCADE_DEFINITIONS} ${OpenCASCADE_DEFINITIONS}
${OMNIORB_DEFINITIONS} ${OMNIORB_DEFINITIONS}
${PYTHON_DEFINITIONS} ${PYTHON_DEFINITIONS}
) )
# libraries to link to # libraries to link to
SET(_link_LIBRARIES SET(_link_LIBRARIES
${KERNEL_SalomeGenericObj} ${KERNEL_SalomeGenericObj}
${KERNEL_SALOMELocalTrace} SALOMELocalTrace
${KERNEL_SalomeKernelHelpers} ${KERNEL_SalomeKernelHelpers}
${GUI_CAM} ${GUI_CAM}
${GUI_suit} ${GUI_suit}
${GUI_qtx} ${GUI_qtx}
${GUI_std} ${GUI_std}
${GUI_Event} ${GUI_Event}
SMESH SMESH
) )
# --- headers --- # --- headers ---
# header files / to be processed by moc # header files / to be processed by moc
SET(SMESH_Swig_HEADERS SET(SMESH_Swig_HEADERS
libSMESH_Swig.h libSMESH_Swig.h
libSMESH_Swig.i libSMESH_Swig.i
) )
# --- sources --- # --- sources ---
# sources / static # sources / static
SET(SMESH_Swig_SOURCES SET(SMESH_Swig_SOURCES
libSMESH_Swig.cxx libSMESH_Swig.cxx
${SMESH_Swig_HEADERS} ${SMESH_Swig_HEADERS}
) )
# workaround about SWIG_ADD_MODULE bug: remove duplicates in include directories # workaround about SWIG_ADD_MODULE bug: remove duplicates in include directories
GET_DIRECTORY_PROPERTY(_cmake_include_directories INCLUDE_DIRECTORIES) GET_DIRECTORY_PROPERTY(_cmake_include_directories INCLUDE_DIRECTORIES)
LIST(REMOVE_DUPLICATES _cmake_include_directories) LIST(REMOVE_DUPLICATES _cmake_include_directories)
SET_DIRECTORY_PROPERTIES(PROPERTIES INCLUDE_DIRECTORIES "${_cmake_include_directories}") SET_DIRECTORY_PROPERTIES(PROPERTIES INCLUDE_DIRECTORIES "${_cmake_include_directories}")
# swig flags # swig flags
SET_SOURCE_FILES_PROPERTIES(libSMESH_Swig.i PROPERTIES CPLUSPLUS ON) SET_SOURCE_FILES_PROPERTIES(libSMESH_Swig.i PROPERTIES CPLUSPLUS ON)
SET_SOURCE_FILES_PROPERTIES(libSMESH_Swig.i PROPERTIES SWIG_FLAGS "-py3") SET_SOURCE_FILES_PROPERTIES(libSMESH_Swig.i PROPERTIES SWIG_FLAGS "-py3")
SET_SOURCE_FILES_PROPERTIES(libSMESH_swig_wrap.cpp PROPERTIES COMPILE_FLAGS "-DHAVE_CONFIG_H") SET_SOURCE_FILES_PROPERTIES(libSMESH_swig_wrap.cpp PROPERTIES COMPILE_FLAGS "-DHAVE_CONFIG_H")
# --- scripts --- # --- scripts ---
# scripts / swig wrappings # scripts / swig wrappings
SET(_swig_SCRIPTS SET(_swig_SCRIPTS
${CMAKE_CURRENT_BINARY_DIR}/libSMESH_Swig.py ${CMAKE_CURRENT_BINARY_DIR}/libSMESH_Swig.py
) )
# --- rules --- # --- rules ---
IF(${CMAKE_VERSION} VERSION_LESS "3.8.0") IF(${CMAKE_VERSION} VERSION_LESS "3.8.0")
SWIG_ADD_MODULE(libSMESH_Swig python ${SMESH_Swig_SOURCES}) SWIG_ADD_MODULE(libSMESH_Swig python ${SMESH_Swig_SOURCES})
ELSE() ELSE()
SWIG_ADD_LIBRARY(libSMESH_Swig LANGUAGE python SOURCES ${SMESH_Swig_SOURCES}) SWIG_ADD_LIBRARY(libSMESH_Swig LANGUAGE python SOURCES ${SMESH_Swig_SOURCES})
ENDIF() ENDIF()
SWIG_LINK_LIBRARIES(libSMESH_Swig ${_link_LIBRARIES}) SWIG_LINK_LIBRARIES(libSMESH_Swig ${_link_LIBRARIES})
SWIG_CHECK_GENERATION(libSMESH_Swig) SWIG_CHECK_GENERATION(libSMESH_Swig)
IF(WIN32) IF(WIN32)
SET_TARGET_PROPERTIES(_libSMESH_Swig PROPERTIES DEBUG_OUTPUT_NAME _libSMESH_Swig_d) SET_TARGET_PROPERTIES(_libSMESH_Swig PROPERTIES DEBUG_OUTPUT_NAME _libSMESH_Swig_d)
ENDIF(WIN32) ENDIF(WIN32)
INSTALL(TARGETS _libSMESH_Swig DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS _libSMESH_Swig DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${SMESH_Swig_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) INSTALL(FILES ${SMESH_Swig_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
SALOME_INSTALL_SCRIPTS("${_swig_SCRIPTS}" ${SALOME_INSTALL_BINS} EXTRA_DPYS "${SWIG_MODULE_libSMESH_Swig_REAL_NAME}") SALOME_INSTALL_SCRIPTS("${_swig_SCRIPTS}" ${SALOME_INSTALL_BINS} EXTRA_DPYS "${SWIG_MODULE_libSMESH_Swig_REAL_NAME}")

View File

@ -1,207 +1,206 @@
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE # Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version. # 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, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
# --- options --- # --- options ---
# additional include directories # additional include directories
IF(SALOME_SMESH_USE_TBB) IF(SALOME_SMESH_USE_TBB)
SET(TBB_INCLUDES ${TBB_INCLUDE_DIRS}) SET(TBB_INCLUDES ${TBB_INCLUDE_DIRS})
ENDIF(SALOME_SMESH_USE_TBB) ENDIF(SALOME_SMESH_USE_TBB)
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${OpenCASCADE_INCLUDE_DIR} ${OpenCASCADE_INCLUDE_DIR}
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
${GEOM_INCLUDE_DIRS} ${GEOM_INCLUDE_DIRS}
${MEDCOUPLING_INCLUDE_DIRS} ${MEDCOUPLING_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/SMESHUtils ${PROJECT_SOURCE_DIR}/src/SMESHUtils
${PROJECT_SOURCE_DIR}/src/SMESH ${PROJECT_SOURCE_DIR}/src/SMESH
${PROJECT_SOURCE_DIR}/src/SMESHDS ${PROJECT_SOURCE_DIR}/src/SMESHDS
${PROJECT_SOURCE_DIR}/src/SMDS ${PROJECT_SOURCE_DIR}/src/SMDS
${PROJECT_SOURCE_DIR}/src/Controls ${PROJECT_SOURCE_DIR}/src/Controls
${TBB_INCLUDES} ${TBB_INCLUDES}
) )
# additional preprocessor / compiler flags # additional preprocessor / compiler flags
ADD_DEFINITIONS( ADD_DEFINITIONS(
${OpenCASCADE_DEFINITIONS} ${OpenCASCADE_DEFINITIONS}
${BOOST_DEFINITIONS} ${BOOST_DEFINITIONS}
) )
IF(SALOME_SMESH_USE_TBB) IF(SALOME_SMESH_USE_TBB)
SET(TBB_LIBS ${TBB_LIBRARIES}) SET(TBB_LIBS ${TBB_LIBRARIES})
ENDIF(SALOME_SMESH_USE_TBB) ENDIF(SALOME_SMESH_USE_TBB)
# libraries to link to # libraries to link to
SET(_link_LIBRARIES SET(_link_LIBRARIES
${KERNEL_SALOMELocalTrace} SALOMELocalTrace
${KERNEL_OpUtil} ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
${OpenCASCADE_ModelingAlgorithms_LIBRARIES} ${OpenCASCADE_ModelingData_LIBRARIES}
${OpenCASCADE_ModelingData_LIBRARIES} ${GEOM_GEOMUtils}
${GEOM_GEOMUtils} SMESHimpl
SMESHimpl SMESHDS
SMESHDS SMESHUtils
SMESHUtils ${TBB_LIBS}
${TBB_LIBS} ${Boost_LIBRARIES}
${Boost_LIBRARIES} )
)
# --- headers ---
# --- headers ---
# header files / no moc processing
# header files / no moc processing SET(StdMeshers_HEADERS
SET(StdMeshers_HEADERS StdMeshers_LocalLength.hxx
StdMeshers_LocalLength.hxx StdMeshers_Reversible1D.hxx
StdMeshers_Reversible1D.hxx StdMeshers_StartEndLength.hxx
StdMeshers_StartEndLength.hxx StdMeshers_Arithmetic1D.hxx
StdMeshers_Arithmetic1D.hxx StdMeshers_Geometric1D.hxx
StdMeshers_Geometric1D.hxx StdMeshers_FixedPoints1D.hxx
StdMeshers_FixedPoints1D.hxx StdMeshers_NumberOfSegments.hxx
StdMeshers_NumberOfSegments.hxx StdMeshers_Deflection1D.hxx
StdMeshers_Deflection1D.hxx StdMeshers_Propagation.hxx
StdMeshers_Propagation.hxx StdMeshers_LengthFromEdges.hxx
StdMeshers_LengthFromEdges.hxx StdMeshers_MaxElementArea.hxx
StdMeshers_MaxElementArea.hxx StdMeshers_MaxElementVolume.hxx
StdMeshers_MaxElementVolume.hxx StdMeshers_NotConformAllowed.hxx
StdMeshers_NotConformAllowed.hxx StdMeshers_Regular_1D.hxx
StdMeshers_Regular_1D.hxx StdMeshers_Quadrangle_2D.hxx
StdMeshers_Quadrangle_2D.hxx StdMeshers_Hexa_3D.hxx
StdMeshers_Hexa_3D.hxx StdMeshers_Penta_3D.hxx
StdMeshers_Penta_3D.hxx StdMeshers_AutomaticLength.hxx
StdMeshers_AutomaticLength.hxx StdMeshers_Distribution.hxx
StdMeshers_Distribution.hxx StdMeshers_QuadranglePreference.hxx
StdMeshers_QuadranglePreference.hxx StdMeshers_QuadraticMesh.hxx
StdMeshers_QuadraticMesh.hxx StdMeshers_NumberOfLayers.hxx
StdMeshers_NumberOfLayers.hxx StdMeshers_NumberOfLayers2D.hxx
StdMeshers_NumberOfLayers2D.hxx StdMeshers_Prism_3D.hxx
StdMeshers_Prism_3D.hxx StdMeshers_ProjectionSource1D.hxx
StdMeshers_ProjectionSource1D.hxx StdMeshers_ProjectionSource2D.hxx
StdMeshers_ProjectionSource2D.hxx StdMeshers_ProjectionSource3D.hxx
StdMeshers_ProjectionSource3D.hxx StdMeshers_Projection_1D.hxx
StdMeshers_Projection_1D.hxx StdMeshers_Projection_2D.hxx
StdMeshers_Projection_2D.hxx StdMeshers_Projection_3D.hxx
StdMeshers_Projection_3D.hxx StdMeshers_RadialPrism_3D.hxx
StdMeshers_RadialPrism_3D.hxx StdMeshers_ProjectionUtils.hxx
StdMeshers_ProjectionUtils.hxx StdMeshers_LayerDistribution.hxx
StdMeshers_LayerDistribution.hxx StdMeshers_LayerDistribution2D.hxx
StdMeshers_LayerDistribution2D.hxx StdMeshers_SegmentAroundVertex_0D.hxx
StdMeshers_SegmentAroundVertex_0D.hxx StdMeshers_SegmentLengthAroundVertex.hxx
StdMeshers_SegmentLengthAroundVertex.hxx StdMeshers_FaceSide.hxx
StdMeshers_FaceSide.hxx StdMeshers_CompositeSegment_1D.hxx
StdMeshers_CompositeSegment_1D.hxx StdMeshers_UseExisting_1D2D.hxx
StdMeshers_UseExisting_1D2D.hxx StdMeshers_QuadToTriaAdaptor.hxx
StdMeshers_QuadToTriaAdaptor.hxx SMESH_StdMeshers.hxx
SMESH_StdMeshers.hxx StdMeshers_CompositeHexa_3D.hxx
StdMeshers_CompositeHexa_3D.hxx StdMeshers_MaxLength.hxx
StdMeshers_MaxLength.hxx StdMeshers_QuadrangleParams.hxx
StdMeshers_QuadrangleParams.hxx StdMeshers_RadialQuadrangle_1D2D.hxx
StdMeshers_RadialQuadrangle_1D2D.hxx StdMeshers_HexaFromSkin_3D.hxx
StdMeshers_HexaFromSkin_3D.hxx StdMeshers_ImportSource.hxx
StdMeshers_ImportSource.hxx StdMeshers_Import_1D.hxx
StdMeshers_Import_1D.hxx StdMeshers_Import_1D2D.hxx
StdMeshers_Import_1D2D.hxx StdMeshers_ViscousLayers.hxx
StdMeshers_ViscousLayers.hxx StdMeshers_ViscousLayers2D.hxx
StdMeshers_ViscousLayers2D.hxx StdMeshers_Projection_1D2D.hxx
StdMeshers_Projection_1D2D.hxx StdMeshers_CartesianParameters3D.hxx
StdMeshers_CartesianParameters3D.hxx StdMeshers_Cartesian_3D_Grid.hxx
StdMeshers_Cartesian_3D_Grid.hxx StdMeshers_Cartesian_3D_Hexahedron.hxx
StdMeshers_Cartesian_3D_Hexahedron.hxx StdMeshers_Cartesian_3D.hxx
StdMeshers_Cartesian_3D.hxx StdMeshers_Cartesian_VL.hxx
StdMeshers_Cartesian_VL.hxx StdMeshers_QuadFromMedialAxis_1D2D.hxx
StdMeshers_QuadFromMedialAxis_1D2D.hxx StdMeshers_PolygonPerFace_2D.hxx
StdMeshers_PolygonPerFace_2D.hxx StdMeshers_PolyhedronPerSolid_3D.hxx
StdMeshers_PolyhedronPerSolid_3D.hxx StdMeshers_BlockRenumber.hxx
StdMeshers_BlockRenumber.hxx StdMeshers_ViscousLayerBuilder.hxx
StdMeshers_ViscousLayerBuilder.hxx )
)
# --- sources ---
# --- sources ---
# sources / static
# sources / static SET(StdMeshers_SOURCES
SET(StdMeshers_SOURCES StdMeshers_LocalLength.cxx
StdMeshers_LocalLength.cxx StdMeshers_Reversible1D.cxx
StdMeshers_Reversible1D.cxx StdMeshers_StartEndLength.cxx
StdMeshers_StartEndLength.cxx StdMeshers_Arithmetic1D.cxx
StdMeshers_Arithmetic1D.cxx StdMeshers_Geometric1D.cxx
StdMeshers_Geometric1D.cxx StdMeshers_FixedPoints1D.cxx
StdMeshers_FixedPoints1D.cxx StdMeshers_NumberOfSegments.cxx
StdMeshers_NumberOfSegments.cxx StdMeshers_Deflection1D.cxx
StdMeshers_Deflection1D.cxx StdMeshers_Propagation.cxx
StdMeshers_Propagation.cxx StdMeshers_LengthFromEdges.cxx
StdMeshers_LengthFromEdges.cxx StdMeshers_MaxElementArea.cxx
StdMeshers_MaxElementArea.cxx StdMeshers_MaxElementVolume.cxx
StdMeshers_MaxElementVolume.cxx StdMeshers_NotConformAllowed.cxx
StdMeshers_NotConformAllowed.cxx StdMeshers_Regular_1D.cxx
StdMeshers_Regular_1D.cxx StdMeshers_Quadrangle_2D.cxx
StdMeshers_Quadrangle_2D.cxx StdMeshers_Penta_3D.cxx
StdMeshers_Penta_3D.cxx StdMeshers_Hexa_3D.cxx
StdMeshers_Hexa_3D.cxx StdMeshers_AutomaticLength.cxx
StdMeshers_AutomaticLength.cxx StdMeshers_Distribution.cxx
StdMeshers_Distribution.cxx StdMeshers_QuadranglePreference.cxx
StdMeshers_QuadranglePreference.cxx StdMeshers_QuadraticMesh.cxx
StdMeshers_QuadraticMesh.cxx StdMeshers_NumberOfLayers.cxx
StdMeshers_NumberOfLayers.cxx StdMeshers_NumberOfLayers2D.cxx
StdMeshers_NumberOfLayers2D.cxx StdMeshers_Prism_3D.cxx
StdMeshers_Prism_3D.cxx StdMeshers_ProjectionSource1D.cxx
StdMeshers_ProjectionSource1D.cxx StdMeshers_ProjectionSource2D.cxx
StdMeshers_ProjectionSource2D.cxx StdMeshers_ProjectionSource3D.cxx
StdMeshers_ProjectionSource3D.cxx StdMeshers_Projection_1D.cxx
StdMeshers_Projection_1D.cxx StdMeshers_Projection_2D.cxx
StdMeshers_Projection_2D.cxx StdMeshers_Projection_3D.cxx
StdMeshers_Projection_3D.cxx StdMeshers_RadialPrism_3D.cxx
StdMeshers_RadialPrism_3D.cxx StdMeshers_ProjectionUtils.cxx
StdMeshers_ProjectionUtils.cxx StdMeshers_LayerDistribution.cxx
StdMeshers_LayerDistribution.cxx StdMeshers_LayerDistribution2D.cxx
StdMeshers_LayerDistribution2D.cxx StdMeshers_SegmentAroundVertex_0D.cxx
StdMeshers_SegmentAroundVertex_0D.cxx StdMeshers_SegmentLengthAroundVertex.cxx
StdMeshers_SegmentLengthAroundVertex.cxx StdMeshers_FaceSide.cxx
StdMeshers_FaceSide.cxx StdMeshers_CompositeSegment_1D.cxx
StdMeshers_CompositeSegment_1D.cxx StdMeshers_UseExisting_1D2D.cxx
StdMeshers_UseExisting_1D2D.cxx StdMeshers_QuadToTriaAdaptor.cxx
StdMeshers_QuadToTriaAdaptor.cxx StdMeshers_CompositeHexa_3D.cxx
StdMeshers_CompositeHexa_3D.cxx StdMeshers_MaxLength.cxx
StdMeshers_MaxLength.cxx StdMeshers_QuadrangleParams.cxx
StdMeshers_QuadrangleParams.cxx StdMeshers_RadialQuadrangle_1D2D.cxx
StdMeshers_RadialQuadrangle_1D2D.cxx StdMeshers_HexaFromSkin_3D.cxx
StdMeshers_HexaFromSkin_3D.cxx StdMeshers_ImportSource.cxx
StdMeshers_ImportSource.cxx StdMeshers_Import_1D.cxx
StdMeshers_Import_1D.cxx StdMeshers_Import_1D2D.cxx
StdMeshers_Import_1D2D.cxx StdMeshers_ViscousLayers.cxx
StdMeshers_ViscousLayers.cxx StdMeshers_ViscousLayers2D.cxx
StdMeshers_ViscousLayers2D.cxx StdMeshers_Projection_1D2D.cxx
StdMeshers_Projection_1D2D.cxx StdMeshers_CartesianParameters3D.cxx
StdMeshers_CartesianParameters3D.cxx StdMeshers_Cartesian_3D_Grid.cxx
StdMeshers_Cartesian_3D_Grid.cxx StdMeshers_Cartesian_3D_Hexahedron.cxx
StdMeshers_Cartesian_3D_Hexahedron.cxx StdMeshers_Cartesian_3D.cxx
StdMeshers_Cartesian_3D.cxx StdMeshers_Cartesian_VL.cxx
StdMeshers_Cartesian_VL.cxx StdMeshers_Adaptive1D.cxx
StdMeshers_Adaptive1D.cxx StdMeshers_QuadFromMedialAxis_1D2D.cxx
StdMeshers_QuadFromMedialAxis_1D2D.cxx StdMeshers_PolygonPerFace_2D.cxx
StdMeshers_PolygonPerFace_2D.cxx StdMeshers_PolyhedronPerSolid_3D.cxx
StdMeshers_PolyhedronPerSolid_3D.cxx StdMeshers_BlockRenumber.cxx
StdMeshers_BlockRenumber.cxx StdMeshers_ViscousLayerBuilder.cxx
StdMeshers_ViscousLayerBuilder.cxx )
)
# --- rules ---
# --- rules ---
ADD_LIBRARY(StdMeshers ${StdMeshers_SOURCES})
ADD_LIBRARY(StdMeshers ${StdMeshers_SOURCES}) TARGET_LINK_LIBRARIES(StdMeshers ${_link_LIBRARIES} )
TARGET_LINK_LIBRARIES(StdMeshers ${_link_LIBRARIES} ) INSTALL(TARGETS StdMeshers EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(TARGETS StdMeshers EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${StdMeshers_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
INSTALL(FILES ${StdMeshers_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})

View File

@ -1,182 +1,182 @@
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE # Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either # License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version. # 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, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
# #
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${OpenCASCADE_INCLUDE_DIR} ${OpenCASCADE_INCLUDE_DIR}
${HDF5_INCLUDE_DIRS} ${HDF5_INCLUDE_DIRS}
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
${GEOM_INCLUDE_DIRS} ${GEOM_INCLUDE_DIRS}
${MEDFILE_INCLUDE_DIRS} ${MEDFILE_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
${MEDCOUPLING_INCLUDE_DIRS} ${MEDCOUPLING_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/SMESHImpl ${PROJECT_SOURCE_DIR}/src/SMESHImpl
${PROJECT_SOURCE_DIR}/src/SMESH ${PROJECT_SOURCE_DIR}/src/SMESH
${PROJECT_SOURCE_DIR}/src/SMESHUtils ${PROJECT_SOURCE_DIR}/src/SMESHUtils
${PROJECT_SOURCE_DIR}/src/SMESH_I ${PROJECT_SOURCE_DIR}/src/SMESH_I
${PROJECT_SOURCE_DIR}/src/SMESHDS ${PROJECT_SOURCE_DIR}/src/SMESHDS
${PROJECT_SOURCE_DIR}/src/SMDS ${PROJECT_SOURCE_DIR}/src/SMDS
${PROJECT_SOURCE_DIR}/src/Controls ${PROJECT_SOURCE_DIR}/src/Controls
${PROJECT_SOURCE_DIR}/src/StdMeshers ${PROJECT_SOURCE_DIR}/src/StdMeshers
${PROJECT_BINARY_DIR}/idl ${PROJECT_BINARY_DIR}/idl
) )
# additional preprocessor / compiler flags # additional preprocessor / compiler flags
ADD_DEFINITIONS( ADD_DEFINITIONS(
${OpenCASCADE_DEFINITIONS} ${OpenCASCADE_DEFINITIONS}
${BOOST_DEFINITIONS} ${BOOST_DEFINITIONS}
${OMNIORB_DEFINITIONS} ${OMNIORB_DEFINITIONS}
) )
# To avoid GetObject macro definition on WIN32 # To avoid GetObject macro definition on WIN32
IF(WIN32) IF(WIN32)
ADD_DEFINITIONS(-DNOGDI) ADD_DEFINITIONS(-DNOGDI)
ENDIF(WIN32) ENDIF(WIN32)
# libraries to link to # libraries to link to
SET(_link_LIBRARIES SET(_link_LIBRARIES
${KERNEL_SALOMELocalTrace} SALOMELocalTrace
${KERNEL_SalomeGenericObj} ${KERNEL_SalomeGenericObj}
${OpenCASCADE_ModelingData_LIBRARIES} ${OpenCASCADE_ModelingData_LIBRARIES}
SalomeIDLSMESH SalomeIDLSMESH
StdMeshers StdMeshers
SMESHEngine SMESHEngine
SMESHimpl SMESHimpl
SMESHDS SMESHDS
${HDF5_LIBRARIES} ${HDF5_LIBRARIES}
) )
# --- headers --- # --- headers ---
# header files / no moc processing # header files / no moc processing
SET(StdMeshersEngine_HEADERS SET(StdMeshersEngine_HEADERS
StdMeshers_LocalLength_i.hxx StdMeshers_LocalLength_i.hxx
StdMeshers_StartEndLength_i.hxx StdMeshers_StartEndLength_i.hxx
StdMeshers_Arithmetic1D_i.hxx StdMeshers_Arithmetic1D_i.hxx
StdMeshers_FixedPoints1D_i.hxx StdMeshers_FixedPoints1D_i.hxx
StdMeshers_NumberOfSegments_i.hxx StdMeshers_NumberOfSegments_i.hxx
StdMeshers_Deflection1D_i.hxx StdMeshers_Deflection1D_i.hxx
StdMeshers_Propagation_i.hxx StdMeshers_Propagation_i.hxx
StdMeshers_LengthFromEdges_i.hxx StdMeshers_LengthFromEdges_i.hxx
StdMeshers_MaxElementArea_i.hxx StdMeshers_MaxElementArea_i.hxx
StdMeshers_MaxElementVolume_i.hxx StdMeshers_MaxElementVolume_i.hxx
StdMeshers_NotConformAllowed_i.hxx StdMeshers_NotConformAllowed_i.hxx
StdMeshers_Regular_1D_i.hxx StdMeshers_Regular_1D_i.hxx
StdMeshers_Quadrangle_2D_i.hxx StdMeshers_Quadrangle_2D_i.hxx
StdMeshers_Hexa_3D_i.hxx StdMeshers_Hexa_3D_i.hxx
StdMeshers_AutomaticLength_i.hxx StdMeshers_AutomaticLength_i.hxx
StdMeshers_QuadranglePreference_i.hxx StdMeshers_QuadranglePreference_i.hxx
StdMeshers_QuadraticMesh_i.hxx StdMeshers_QuadraticMesh_i.hxx
StdMeshers_NumberOfLayers_i.hxx StdMeshers_NumberOfLayers_i.hxx
StdMeshers_NumberOfLayers2D_i.hxx StdMeshers_NumberOfLayers2D_i.hxx
StdMeshers_Prism_3D_i.hxx StdMeshers_Prism_3D_i.hxx
StdMeshers_ProjectionSource1D_i.hxx StdMeshers_ProjectionSource1D_i.hxx
StdMeshers_ProjectionSource2D_i.hxx StdMeshers_ProjectionSource2D_i.hxx
StdMeshers_ProjectionSource3D_i.hxx StdMeshers_ProjectionSource3D_i.hxx
StdMeshers_Projection_1D_2D_3D_i.hxx StdMeshers_Projection_1D_2D_3D_i.hxx
StdMeshers_ObjRefUlils.hxx StdMeshers_ObjRefUlils.hxx
StdMeshers_LayerDistribution_i.hxx StdMeshers_LayerDistribution_i.hxx
StdMeshers_LayerDistribution2D_i.hxx StdMeshers_LayerDistribution2D_i.hxx
StdMeshers_CompositeSegment_1D_i.hxx StdMeshers_CompositeSegment_1D_i.hxx
StdMeshers_SegmentAroundVertex_0D_i.hxx StdMeshers_SegmentAroundVertex_0D_i.hxx
StdMeshers_SegmentLengthAroundVertex_i.hxx StdMeshers_SegmentLengthAroundVertex_i.hxx
StdMeshers_UseExisting_1D2D_i.hxx StdMeshers_UseExisting_1D2D_i.hxx
StdMeshers_MaxLength_i.hxx StdMeshers_MaxLength_i.hxx
StdMeshers_QuadrangleParams_i.hxx StdMeshers_QuadrangleParams_i.hxx
StdMeshers_RadialQuadrangle_1D2D_i.hxx StdMeshers_RadialQuadrangle_1D2D_i.hxx
SMESH_StdMeshers_I.hxx SMESH_StdMeshers_I.hxx
StdMeshers_ImportSource1D_i.hxx StdMeshers_ImportSource1D_i.hxx
StdMeshers_ImportSource2D_i.hxx StdMeshers_ImportSource2D_i.hxx
StdMeshers_Import_1D_i.hxx StdMeshers_Import_1D_i.hxx
StdMeshers_Import_1D2D_i.hxx StdMeshers_Import_1D2D_i.hxx
StdMeshers_ViscousLayers_i.hxx StdMeshers_ViscousLayers_i.hxx
StdMeshers_ViscousLayers2D_i.hxx StdMeshers_ViscousLayers2D_i.hxx
StdMeshers_CartesianParameters3D_i.hxx StdMeshers_CartesianParameters3D_i.hxx
StdMeshers_Cartesian_3D_i.hxx StdMeshers_Cartesian_3D_i.hxx
StdMeshers_PolygonPerFace_2D_i.hxx StdMeshers_PolygonPerFace_2D_i.hxx
StdMeshers_PolyhedronPerSolid_3D_i.hxx StdMeshers_PolyhedronPerSolid_3D_i.hxx
StdMeshers_BlockRenumber_i.hxx StdMeshers_BlockRenumber_i.hxx
StdMeshers_ViscousLayerBuilder_i.hxx StdMeshers_ViscousLayerBuilder_i.hxx
) )
# --- sources --- # --- sources ---
# sources / static # sources / static
SET(StdMeshersEngine_SOURCES SET(StdMeshersEngine_SOURCES
StdMeshers_i.cxx StdMeshers_i.cxx
StdMeshers_LocalLength_i.cxx StdMeshers_LocalLength_i.cxx
StdMeshers_Reversible1D_i.cxx StdMeshers_Reversible1D_i.cxx
StdMeshers_StartEndLength_i.cxx StdMeshers_StartEndLength_i.cxx
StdMeshers_Arithmetic1D_i.cxx StdMeshers_Arithmetic1D_i.cxx
StdMeshers_Geometric1D_i.cxx StdMeshers_Geometric1D_i.cxx
StdMeshers_FixedPoints1D_i.cxx StdMeshers_FixedPoints1D_i.cxx
StdMeshers_NumberOfSegments_i.cxx StdMeshers_NumberOfSegments_i.cxx
StdMeshers_Deflection1D_i.cxx StdMeshers_Deflection1D_i.cxx
StdMeshers_Propagation_i.cxx StdMeshers_Propagation_i.cxx
StdMeshers_LengthFromEdges_i.cxx StdMeshers_LengthFromEdges_i.cxx
StdMeshers_MaxElementArea_i.cxx StdMeshers_MaxElementArea_i.cxx
StdMeshers_MaxElementVolume_i.cxx StdMeshers_MaxElementVolume_i.cxx
StdMeshers_NotConformAllowed_i.cxx StdMeshers_NotConformAllowed_i.cxx
StdMeshers_Regular_1D_i.cxx StdMeshers_Regular_1D_i.cxx
StdMeshers_Quadrangle_2D_i.cxx StdMeshers_Quadrangle_2D_i.cxx
StdMeshers_Hexa_3D_i.cxx StdMeshers_Hexa_3D_i.cxx
StdMeshers_AutomaticLength_i.cxx StdMeshers_AutomaticLength_i.cxx
StdMeshers_QuadranglePreference_i.cxx StdMeshers_QuadranglePreference_i.cxx
StdMeshers_QuadraticMesh_i.cxx StdMeshers_QuadraticMesh_i.cxx
StdMeshers_NumberOfLayers_i.cxx StdMeshers_NumberOfLayers_i.cxx
StdMeshers_NumberOfLayers2D_i.cxx StdMeshers_NumberOfLayers2D_i.cxx
StdMeshers_Prism_3D_i.cxx StdMeshers_Prism_3D_i.cxx
StdMeshers_ProjectionSource1D_i.cxx StdMeshers_ProjectionSource1D_i.cxx
StdMeshers_ProjectionSource2D_i.cxx StdMeshers_ProjectionSource2D_i.cxx
StdMeshers_ProjectionSource3D_i.cxx StdMeshers_ProjectionSource3D_i.cxx
StdMeshers_Projection_1D_2D_3D_i.cxx StdMeshers_Projection_1D_2D_3D_i.cxx
StdMeshers_ObjRefUlils.cxx StdMeshers_ObjRefUlils.cxx
StdMeshers_LayerDistribution_i.cxx StdMeshers_LayerDistribution_i.cxx
StdMeshers_LayerDistribution2D_i.cxx StdMeshers_LayerDistribution2D_i.cxx
StdMeshers_CompositeSegment_1D_i.cxx StdMeshers_CompositeSegment_1D_i.cxx
StdMeshers_SegmentAroundVertex_0D_i.cxx StdMeshers_SegmentAroundVertex_0D_i.cxx
StdMeshers_SegmentLengthAroundVertex_i.cxx StdMeshers_SegmentLengthAroundVertex_i.cxx
StdMeshers_UseExisting_1D2D_i.cxx StdMeshers_UseExisting_1D2D_i.cxx
StdMeshers_MaxLength_i.cxx StdMeshers_MaxLength_i.cxx
StdMeshers_QuadrangleParams_i.cxx StdMeshers_QuadrangleParams_i.cxx
StdMeshers_RadialQuadrangle_1D2D_i.cxx StdMeshers_RadialQuadrangle_1D2D_i.cxx
StdMeshers_ImportSource1D_i.cxx StdMeshers_ImportSource1D_i.cxx
StdMeshers_ImportSource2D_i.cxx StdMeshers_ImportSource2D_i.cxx
StdMeshers_Import_1D_i.cxx StdMeshers_Import_1D_i.cxx
StdMeshers_Import_1D2D_i.cxx StdMeshers_Import_1D2D_i.cxx
StdMeshers_ViscousLayers_i.cxx StdMeshers_ViscousLayers_i.cxx
StdMeshers_ViscousLayers2D_i.cxx StdMeshers_ViscousLayers2D_i.cxx
StdMeshers_CartesianParameters3D_i.cxx StdMeshers_CartesianParameters3D_i.cxx
StdMeshers_Cartesian_3D_i.cxx StdMeshers_Cartesian_3D_i.cxx
StdMeshers_Adaptive1D_i.cxx StdMeshers_Adaptive1D_i.cxx
StdMeshers_PolygonPerFace_2D_i.cxx StdMeshers_PolygonPerFace_2D_i.cxx
StdMeshers_PolyhedronPerSolid_3D_i.cxx StdMeshers_PolyhedronPerSolid_3D_i.cxx
StdMeshers_BlockRenumber_i.cxx StdMeshers_BlockRenumber_i.cxx
StdMeshers_ViscousLayerBuilder_i.cxx StdMeshers_ViscousLayerBuilder_i.cxx
) )
# --- rules --- # --- rules ---
ADD_LIBRARY(StdMeshersEngine ${StdMeshersEngine_SOURCES}) ADD_LIBRARY(StdMeshersEngine ${StdMeshersEngine_SOURCES})
TARGET_LINK_LIBRARIES(StdMeshersEngine ${_link_LIBRARIES} ) TARGET_LINK_LIBRARIES(StdMeshersEngine ${_link_LIBRARIES} )
INSTALL(TARGETS StdMeshersEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS StdMeshersEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${StdMeshersEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) INSTALL(FILES ${StdMeshersEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})