# Copyright (C) 2012-2024 CEA, EDF # # 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 # # --- options --- # additional include directories INCLUDE_DIRECTORIES( ${KERNEL_INCLUDE_DIRS} ${OpenCASCADE_INCLUDE_DIR} ${GEOM_INCLUDE_DIRS} ${SMESH_INCLUDE_DIRS} ${MESHGEMS_INCLUDE_DIRS} ${MEDCOUPLING_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${OMNIORB_INCLUDE_DIR} ${PROJECT_BINARY_DIR}/idl ) # additional preprocessor / compiler flags ADD_DEFINITIONS( ${OMNIORB_DEFINITIONS} ${OpenCASCADE_DEFINITIONS} ${BOOST_DEFINITIONS} ) # libraries to link to SET(_link_LIBRARIES TKBRep TKG2d TKG3d TKTopAlgo TKGeomBase TKGeomAlgo TKCDF ${MESHGEMS_TETRA_LIBRARY} ${SMESH_SMESHimpl} ${SMESH_SMESHEngine} ${SMESH_SMESHDS} ${SMESH_SMDS} ${SMESH_StdMeshers} ${SMESH_MeshDriverGMF} ${KERNEL_SalomeGenericObj} ${KERNEL_SALOMELocalTrace} ${KERNEL_SALOMEBasics} ${KERNEL_SalomeNS} ${KERNEL_OpUtil} SalomeIDLGHS3DPLUGIN ) # --- headers --- # header files SET(GHS3DEngine_HEADERS GHS3DPlugin_Defs.hxx GHS3DPlugin_GHS3D.hxx GHS3DPlugin_GHS3D_i.hxx GHS3DPlugin_Hypothesis.hxx GHS3DPlugin_Hypothesis_i.hxx GHS3DPlugin_Optimizer.hxx GHS3DPlugin_OptimizerHypothesis.hxx GHS3DPlugin_OptimizerHypothesis_i.hxx MG_Tetra_API.hxx ) # --- sources --- # sources / static SET(GHS3DEngine_SOURCES GHS3DPlugin_GHS3D.cxx GHS3DPlugin_GHS3D_i.cxx GHS3DPlugin_i.cxx GHS3DPlugin_Hypothesis.cxx GHS3DPlugin_Hypothesis_i.cxx GHS3DPlugin_Optimizer.cxx GHS3DPlugin_OptimizerHypothesis.cxx GHS3DPlugin_OptimizerHypothesis_i.cxx MG_Tetra_API.cxx ) # --- scripts --- # scripts / static SET(_bin_SCRIPTS __init__.py GHS3DPluginBuilder.py ) # --- rules --- ADD_LIBRARY(GHS3DEngine ${GHS3DEngine_SOURCES} ${GHS3DEngine_HEADERS}) TARGET_LINK_LIBRARIES(GHS3DEngine ${_link_LIBRARIES} ) INSTALL(TARGETS GHS3DEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(FILES ${GHS3DEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/GHS3DPlugin)