Salome HOME
Merge branch 'V9_9_BR'
[modules/smesh.git] / src / SMESHDS / CMakeLists.txt
1 # Copyright (C) 2012-2022  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # --- options ---
21 # additional include directories
22
23 IF(SALOME_SMESH_USE_TBB)
24   SET(TBB_INCLUDES ${TBB_INCLUDE_DIRS})
25 ENDIF(SALOME_SMESH_USE_TBB)
26
27 INCLUDE_DIRECTORIES(
28   ${KERNEL_INCLUDE_DIRS}
29   ${OpenCASCADE_INCLUDE_DIR}
30   ${Boost_INCLUDE_DIRS}
31   ${PROJECT_SOURCE_DIR}/src/SMDS
32   ${TBB_INCLUDES}
33 )
34
35 # additional preprocessor / compiler flags
36 ADD_DEFINITIONS(
37   ${OpenCASCADE_DEFINITIONS}
38   ${BOOST_DEFINITIONS}
39 )
40
41 IF(SALOME_SMESH_USE_TBB)
42   SET(TBB_LIBS ${TBB_LIBRARIES})
43 ENDIF(SALOME_SMESH_USE_TBB)
44
45 # libraries to link to
46 SET(_link_LIBRARIES
47   ${OpenCASCADE_KERNEL}
48   ${OpenCASCADE_ModelingData_LIBRARIES}
49   ${KERNEL_SALOMELocalTrace}
50   SMDS
51   ${TBB_LIBS}
52 )
53
54 # --- headers ---
55
56 # header files / no moc processing
57 SET(SMESHDS_HEADERS
58   SMESHDS_Document.hxx
59   SMESHDS_Hypothesis.hxx
60   SMESHDS_Mesh.hxx
61   SMESHDS_Script.hxx
62   SMESHDS_Command.hxx
63   SMESHDS_CommandType.hxx
64   SMESHDS_SubMesh.hxx
65   SMESHDS_GroupBase.hxx
66   SMESHDS_Group.hxx
67   SMESHDS_GroupOnGeom.hxx
68   SMESHDS_GroupOnFilter.hxx
69   SMESH_SMESHDS.hxx
70   SMESHDS_DataMapOfShape.hxx
71   SMESH_Controls.hxx
72 )
73
74 # --- sources ---
75
76 # sources / static
77 SET(SMESHDS_SOURCES
78   SMESHDS_Document.cxx
79   SMESHDS_Hypothesis.cxx
80   SMESHDS_Script.cxx
81   SMESHDS_Command.cxx
82   SMESHDS_SubMesh.cxx
83   SMESHDS_Mesh.cxx
84   SMESHDS_GroupBase.cxx
85   SMESHDS_Group.cxx
86   SMESHDS_GroupOnGeom.cxx
87   SMESHDS_GroupOnFilter.cxx
88 )
89
90 # --- rules ---
91
92 ADD_LIBRARY(SMESHDS ${SMESHDS_SOURCES})
93 TARGET_LINK_LIBRARIES(SMESHDS ${_link_LIBRARIES} )
94 INSTALL(TARGETS SMESHDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
95
96 INSTALL(FILES ${SMESHDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})