Salome HOME
Update copyrights 2014.
[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   chrono.hxx
45   ObjectPool.hxx
46   SMDS_TypeOfPosition.hxx
47   SMDSAbs_ElementType.hxx
48   SMDS_EdgePosition.hxx
49   SMDS_ElemIterator.hxx
50   SMDS_FacePosition.hxx
51   SMDS_Mesh.hxx
52   SMDS_Mesh0DElement.hxx
53   SMDS_LinearEdge.hxx
54   SMDS_MeshEdge.hxx
55   SMDS_MeshElement.hxx
56   SMDS_MeshElementIDFactory.hxx
57   SMDS_MeshCell.hxx
58   SMDS_MeshFace.hxx
59   SMDS_MeshGroup.hxx
60   SMDS_MeshIDFactory.hxx
61   SMDS_MeshNode.hxx
62   SMDS_MeshNodeIDFactory.hxx
63   SMDS_MeshObject.hxx
64   SMDS_MeshVolume.hxx
65   SMDS_Position.hxx
66   SMDS_SpacePosition.hxx
67   SMDS_VertexPosition.hxx
68   SMDS_Iterator.hxx
69   SMDS_IteratorOfElements.hxx
70   SMDS_VolumeOfFaces.hxx
71   SMDS_VolumeOfNodes.hxx
72   SMDS_VtkEdge.hxx
73   SMDS_VtkFace.hxx
74   SMDS_VtkVolume.hxx
75   SMDS_VtkCellIterator.hxx
76   SMDS_PolyhedralVolumeOfNodes.hxx
77   SMDS_FaceOfEdges.hxx
78   SMDS_FaceOfNodes.hxx
79   SMDS_PolygonalFaceOfNodes.hxx
80   SMDS_VolumeTool.hxx
81   SMDS_QuadraticEdge.hxx
82   SMDS_QuadraticFaceOfNodes.hxx
83   SMDS_QuadraticVolumeOfNodes.hxx
84   SMDS_SetIterator.hxx
85   SMESH_SMDS.hxx
86   SMDS_MeshInfo.hxx
87   SMDS_UnstructuredGrid.hxx
88   SMDS_Downward.hxx
89   SMDS_StdIterator.hxx
90   SMDS_IteratorOnIterators.hxx
91   SMDS_BallElement.hxx
92 )
93
94 # --- sources ---
95
96 # sources / static
97 SET(SMDS_SOURCES
98   chrono.cxx
99   SMDS_MeshObject.cxx
100   SMDS_MeshElement.cxx
101   SMDS_MeshCell.cxx
102   SMDS_Position.cxx
103   SMDS_EdgePosition.cxx
104   SMDS_FacePosition.cxx
105   SMDS_SpacePosition.cxx
106   SMDS_VertexPosition.cxx
107   SMDS_MeshNode.cxx
108   SMDS_Mesh0DElement.cxx
109   SMDS_LinearEdge.cxx
110   SMDS_MeshEdge.cxx
111   SMDS_MeshFace.cxx
112   SMDS_MeshVolume.cxx
113   SMDS_MeshNodeIDFactory.cxx
114   SMDS_MeshElementIDFactory.cxx
115   SMDS_MeshGroup.cxx
116   SMDS_MeshIDFactory.cxx
117   SMDS_Mesh.cxx
118   SMDS_IteratorOfElements.cxx
119   SMDS_VolumeOfFaces.cxx
120   SMDS_VolumeOfNodes.cxx
121   SMDS_VtkEdge.cxx
122   SMDS_VtkFace.cxx
123   SMDS_VtkVolume.cxx
124   SMDS_VtkCellIterator.cxx
125   SMDS_PolyhedralVolumeOfNodes.cxx
126   SMDS_FaceOfEdges.cxx
127   SMDS_FaceOfNodes.cxx
128   SMDS_PolygonalFaceOfNodes.cxx
129   SMDS_VolumeTool.cxx
130   SMDS_QuadraticEdge.cxx
131   SMDS_QuadraticFaceOfNodes.cxx
132   SMDS_QuadraticVolumeOfNodes.cxx
133   SMDS_UnstructuredGrid.cxx
134   SMDS_Downward.cxx
135   SMDS_BallElement.cxx 
136 )
137
138 # bin programs
139 SET(SMDS_MemoryLimit_SOURCES
140   SMDS_MemoryLimit.cxx
141 )
142
143 # --- rules ---
144
145 ADD_LIBRARY(SMDS ${SMDS_SOURCES})
146 TARGET_LINK_LIBRARIES(SMDS ${_link_LIBRARIES} )
147 INSTALL(TARGETS SMDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
148
149 ADD_EXECUTABLE(SMDS_MemoryLimit ${SMDS_MemoryLimit_SOURCES})
150 TARGET_LINK_LIBRARIES(SMDS_MemoryLimit ${_link_LIBRARIES})
151 INSTALL(TARGETS SMDS_MemoryLimit EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
152
153 INSTALL(FILES ${SMDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})