Salome HOME
Issue 0022816: duplicated files
[modules/smesh.git] / src / SMDS / CMakeLists.txt
1 # Copyright (C) 2012-2014  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   ${VTK_INCLUDE_DIRS}
25   ${Boost_INCLUDE_DIRS}
26 )
27
28 # additional preprocessor / compiler flags
29 ADD_DEFINITIONS(
30   ${BOOST_DEFINITIONS}
31 )
32
33 # libraries to link to
34 SET(_link_LIBRARIES
35   ${VTK_LIBRARIES}
36   ${KERNEL_SALOMELocalTrace}
37   ${KERNEL_OpUtil}
38 )
39
40 # --- headers ---
41
42 # header files / no moc processing
43 SET(SMDS_HEADERS
44   ObjectPool.hxx
45   SMDS_TypeOfPosition.hxx
46   SMDSAbs_ElementType.hxx
47   SMDS_EdgePosition.hxx
48   SMDS_ElemIterator.hxx
49   SMDS_FacePosition.hxx
50   SMDS_Mesh.hxx
51   SMDS_Mesh0DElement.hxx
52   SMDS_LinearEdge.hxx
53   SMDS_MeshEdge.hxx
54   SMDS_MeshElement.hxx
55   SMDS_MeshElementIDFactory.hxx
56   SMDS_MeshCell.hxx
57   SMDS_MeshFace.hxx
58   SMDS_MeshGroup.hxx
59   SMDS_MeshIDFactory.hxx
60   SMDS_MeshNode.hxx
61   SMDS_MeshNodeIDFactory.hxx
62   SMDS_MeshObject.hxx
63   SMDS_MeshVolume.hxx
64   SMDS_Position.hxx
65   SMDS_SpacePosition.hxx
66   SMDS_VertexPosition.hxx
67   SMDS_Iterator.hxx
68   SMDS_IteratorOfElements.hxx
69   SMDS_VolumeOfFaces.hxx
70   SMDS_VolumeOfNodes.hxx
71   SMDS_VtkEdge.hxx
72   SMDS_VtkFace.hxx
73   SMDS_VtkVolume.hxx
74   SMDS_VtkCellIterator.hxx
75   SMDS_PolyhedralVolumeOfNodes.hxx
76   SMDS_FaceOfEdges.hxx
77   SMDS_FaceOfNodes.hxx
78   SMDS_PolygonalFaceOfNodes.hxx
79   SMDS_VolumeTool.hxx
80   SMDS_QuadraticEdge.hxx
81   SMDS_QuadraticFaceOfNodes.hxx
82   SMDS_QuadraticVolumeOfNodes.hxx
83   SMDS_SetIterator.hxx
84   SMESH_SMDS.hxx
85   SMDS_MeshInfo.hxx
86   SMDS_UnstructuredGrid.hxx
87   SMDS_Downward.hxx
88   SMDS_StdIterator.hxx
89   SMDS_IteratorOnIterators.hxx
90   SMDS_BallElement.hxx
91 )
92
93 # --- sources ---
94
95 # sources / static
96 SET(SMDS_SOURCES
97   chrono.cxx
98   SMDS_MeshObject.cxx
99   SMDS_MeshElement.cxx
100   SMDS_MeshCell.cxx
101   SMDS_Position.cxx
102   SMDS_EdgePosition.cxx
103   SMDS_FacePosition.cxx
104   SMDS_SpacePosition.cxx
105   SMDS_VertexPosition.cxx
106   SMDS_MeshNode.cxx
107   SMDS_Mesh0DElement.cxx
108   SMDS_LinearEdge.cxx
109   SMDS_MeshEdge.cxx
110   SMDS_MeshFace.cxx
111   SMDS_MeshVolume.cxx
112   SMDS_MeshNodeIDFactory.cxx
113   SMDS_MeshElementIDFactory.cxx
114   SMDS_MeshGroup.cxx
115   SMDS_MeshIDFactory.cxx
116   SMDS_Mesh.cxx
117   SMDS_IteratorOfElements.cxx
118   SMDS_VolumeOfFaces.cxx
119   SMDS_VolumeOfNodes.cxx
120   SMDS_VtkEdge.cxx
121   SMDS_VtkFace.cxx
122   SMDS_VtkVolume.cxx
123   SMDS_VtkCellIterator.cxx
124   SMDS_PolyhedralVolumeOfNodes.cxx
125   SMDS_FaceOfEdges.cxx
126   SMDS_FaceOfNodes.cxx
127   SMDS_PolygonalFaceOfNodes.cxx
128   SMDS_VolumeTool.cxx
129   SMDS_QuadraticEdge.cxx
130   SMDS_QuadraticFaceOfNodes.cxx
131   SMDS_QuadraticVolumeOfNodes.cxx
132   SMDS_UnstructuredGrid.cxx
133   SMDS_Downward.cxx
134   SMDS_BallElement.cxx 
135 )
136
137 # bin programs
138 SET(SMDS_MemoryLimit_SOURCES
139   SMDS_MemoryLimit.cxx
140 )
141
142 # --- rules ---
143
144 ADD_LIBRARY(SMDS ${SMDS_SOURCES})
145 TARGET_LINK_LIBRARIES(SMDS ${_link_LIBRARIES} )
146 INSTALL(TARGETS SMDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
147
148 ADD_EXECUTABLE(SMDS_MemoryLimit ${SMDS_MemoryLimit_SOURCES})
149 TARGET_LINK_LIBRARIES(SMDS_MemoryLimit ${_link_LIBRARIES})
150 INSTALL(TARGETS SMDS_MemoryLimit EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
151
152 INSTALL(FILES ${SMDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})