Salome HOME
Port Smesh to ParaView 5.8.
[modules/smesh.git] / src / SMDS / CMakeLists.txt
1 # Copyright (C) 2012-2019  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 INCLUDE_DIRECTORIES(
23   ${KERNEL_INCLUDE_DIRS}
24   ${Boost_INCLUDE_DIRS}
25 )
26
27 # additional preprocessor / compiler flags
28 ADD_DEFINITIONS(
29   ${BOOST_DEFINITIONS}
30 )
31
32 # libraries to link to
33 SET(_link_LIBRARIES
34   ${KERNEL_SALOMELocalTrace}
35   ${KERNEL_OpUtil}
36   VTK::CommonCore
37 )
38
39 # --- headers ---
40
41 # header files / no moc processing
42 SET(SMDS_HEADERS
43   ObjectPool.hxx
44   SMDSAbs_ElementType.hxx
45   SMDS_BallElement.hxx
46   SMDS_CellOfNodes.hxx
47   SMDS_Downward.hxx
48   SMDS_EdgePosition.hxx
49   SMDS_ElemIterator.hxx
50   SMDS_ElementFactory.hxx
51   SMDS_FaceOfNodes.hxx
52   SMDS_FacePosition.hxx
53   SMDS_Iterator.hxx
54   SMDS_IteratorOnIterators.hxx
55   SMDS_LinearEdge.hxx
56   SMDS_Mesh.hxx
57   SMDS_Mesh0DElement.hxx
58   SMDS_MeshCell.hxx
59   SMDS_MeshEdge.hxx
60   SMDS_MeshElement.hxx
61   SMDS_MeshFace.hxx
62   SMDS_MeshGroup.hxx
63   SMDS_MeshInfo.hxx
64   SMDS_MeshNode.hxx
65   SMDS_MeshObject.hxx
66   SMDS_MeshVolume.hxx
67   SMDS_PolygonalFaceOfNodes.hxx
68   SMDS_Position.hxx
69   SMDS_SetIterator.hxx
70   SMDS_SpacePosition.hxx
71   SMDS_StdIterator.hxx
72   SMDS_TypeOfPosition.hxx
73   SMDS_UnstructuredGrid.hxx
74   SMDS_VertexPosition.hxx
75   SMDS_VolumeOfNodes.hxx
76   SMDS_VolumeTool.hxx
77   SMDS_VtkCellIterator.hxx
78   SMDS_ElementHolder.hxx
79   SMESH_SMDS.hxx
80   chrono.hxx
81   )
82
83 # --- sources ---
84
85 # sources / static
86 SET(SMDS_SOURCES
87   SMDS_BallElement.cxx
88   SMDS_Downward.cxx
89   SMDS_CellOfNodes.cxx
90   SMDS_ElementFactory.cxx
91   SMDS_FaceOfNodes.cxx
92   SMDS_FacePosition.cxx
93   SMDS_LinearEdge.cxx
94   SMDS_MemoryLimit.cxx
95   SMDS_Mesh.cxx
96   SMDS_MeshCell.cxx
97   SMDS_MeshElement.cxx
98   SMDS_MeshGroup.cxx
99   SMDS_MeshNode.cxx
100   SMDS_MeshObject.cxx
101   SMDS_MeshVolume.cxx
102   SMDS_PolygonalFaceOfNodes.cxx
103   SMDS_SpacePosition.cxx
104   SMDS_UnstructuredGrid.cxx
105   SMDS_VolumeOfNodes.cxx
106   SMDS_VolumeTool.cxx
107   SMDS_VtkCellIterator.cxx
108   SMDS_ElementHolder.cxx
109   chrono.cxx
110 )
111
112 # bin programs
113 SET(SMDS_MemoryLimit_SOURCES
114   SMDS_MemoryLimit.cxx
115 )
116
117 # --- rules ---
118
119 ADD_LIBRARY(SMDS ${SMDS_SOURCES})
120 TARGET_LINK_LIBRARIES(SMDS ${_link_LIBRARIES} )
121 INSTALL(TARGETS SMDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
122
123 ADD_EXECUTABLE(SMDS_MemoryLimit ${SMDS_MemoryLimit_SOURCES})
124 TARGET_LINK_LIBRARIES(SMDS_MemoryLimit ${_link_LIBRARIES})
125 INSTALL(TARGETS SMDS_MemoryLimit EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
126
127 INSTALL(FILES ${SMDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})