2022-05-05 18:51:12 +05:00
|
|
|
# Copyright (C) 2012-2022 CEA/DEN, EDF R&D, OPEN CASCADE
|
2013-10-10 18:57:42 +06:00
|
|
|
#
|
|
|
|
# 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
|
2014-02-20 18:25:37 +06:00
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
2013-10-10 18:57:42 +06:00
|
|
|
#
|
|
|
|
# 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
|
2016-06-27 22:07:19 +05:00
|
|
|
|
|
|
|
IF(SALOME_SMESH_USE_TBB)
|
|
|
|
SET(TBB_INCLUDES ${TBB_INCLUDE_DIRS})
|
|
|
|
ENDIF(SALOME_SMESH_USE_TBB)
|
|
|
|
|
2013-10-10 18:57:42 +06:00
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
${KERNEL_INCLUDE_DIRS}
|
2017-02-15 20:15:18 +05:00
|
|
|
${OpenCASCADE_INCLUDE_DIR}
|
2013-10-10 18:57:42 +06:00
|
|
|
${Boost_INCLUDE_DIRS}
|
|
|
|
${PROJECT_SOURCE_DIR}/src/SMDS
|
2016-06-27 22:07:19 +05:00
|
|
|
${TBB_INCLUDES}
|
2013-10-10 18:57:42 +06:00
|
|
|
)
|
|
|
|
|
|
|
|
# additional preprocessor / compiler flags
|
|
|
|
ADD_DEFINITIONS(
|
2017-02-15 20:15:18 +05:00
|
|
|
${OpenCASCADE_DEFINITIONS}
|
2013-10-10 18:57:42 +06:00
|
|
|
${BOOST_DEFINITIONS}
|
|
|
|
)
|
|
|
|
|
2016-06-27 22:07:19 +05:00
|
|
|
IF(SALOME_SMESH_USE_TBB)
|
|
|
|
SET(TBB_LIBS ${TBB_LIBRARIES})
|
|
|
|
ENDIF(SALOME_SMESH_USE_TBB)
|
|
|
|
|
2013-10-10 18:57:42 +06:00
|
|
|
# libraries to link to
|
|
|
|
SET(_link_LIBRARIES
|
2017-02-15 20:15:18 +05:00
|
|
|
${OpenCASCADE_KERNEL}
|
|
|
|
${OpenCASCADE_ModelingData_LIBRARIES}
|
2013-10-10 18:57:42 +06:00
|
|
|
${KERNEL_SALOMELocalTrace}
|
|
|
|
SMDS
|
2016-06-27 22:07:19 +05:00
|
|
|
${TBB_LIBS}
|
2013-10-10 18:57:42 +06:00
|
|
|
)
|
|
|
|
|
|
|
|
# --- headers ---
|
|
|
|
|
|
|
|
# header files / no moc processing
|
|
|
|
SET(SMESHDS_HEADERS
|
|
|
|
SMESHDS_Document.hxx
|
|
|
|
SMESHDS_Hypothesis.hxx
|
|
|
|
SMESHDS_Mesh.hxx
|
|
|
|
SMESHDS_Script.hxx
|
|
|
|
SMESHDS_Command.hxx
|
|
|
|
SMESHDS_CommandType.hxx
|
|
|
|
SMESHDS_SubMesh.hxx
|
|
|
|
SMESHDS_GroupBase.hxx
|
|
|
|
SMESHDS_Group.hxx
|
|
|
|
SMESHDS_GroupOnGeom.hxx
|
|
|
|
SMESHDS_GroupOnFilter.hxx
|
|
|
|
SMESH_SMESHDS.hxx
|
|
|
|
SMESHDS_DataMapOfShape.hxx
|
|
|
|
SMESH_Controls.hxx
|
|
|
|
)
|
|
|
|
|
|
|
|
# --- sources ---
|
|
|
|
|
|
|
|
# sources / static
|
|
|
|
SET(SMESHDS_SOURCES
|
|
|
|
SMESHDS_Document.cxx
|
|
|
|
SMESHDS_Hypothesis.cxx
|
|
|
|
SMESHDS_Script.cxx
|
|
|
|
SMESHDS_Command.cxx
|
|
|
|
SMESHDS_SubMesh.cxx
|
|
|
|
SMESHDS_Mesh.cxx
|
|
|
|
SMESHDS_GroupBase.cxx
|
|
|
|
SMESHDS_Group.cxx
|
|
|
|
SMESHDS_GroupOnGeom.cxx
|
|
|
|
SMESHDS_GroupOnFilter.cxx
|
|
|
|
)
|
|
|
|
|
|
|
|
# --- rules ---
|
|
|
|
|
|
|
|
ADD_LIBRARY(SMESHDS ${SMESHDS_SOURCES})
|
|
|
|
TARGET_LINK_LIBRARIES(SMESHDS ${_link_LIBRARIES} )
|
|
|
|
INSTALL(TARGETS SMESHDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
|
|
|
|
|
|
|
|
INSTALL(FILES ${SMESHDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
|