Salome HOME
0023544: SMESH's performance issues
[modules/smesh.git] / src / SMDS / CMakeLists.txt
1 # Copyright (C) 2012-2016  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   SMDSAbs_ElementType.hxx
46   SMDS_BallElement.hxx
47   SMDS_CellOfNodes.hxx
48   SMDS_Downward.hxx
49   SMDS_EdgePosition.hxx
50   SMDS_ElemIterator.hxx
51   SMDS_ElementFactory.hxx
52   SMDS_FaceOfNodes.hxx
53   SMDS_FacePosition.hxx
54   SMDS_Iterator.hxx
55   SMDS_IteratorOnIterators.hxx
56   SMDS_LinearEdge.hxx
57   SMDS_Mesh.hxx
58   SMDS_Mesh0DElement.hxx
59   SMDS_MeshCell.hxx
60   SMDS_MeshEdge.hxx
61   SMDS_MeshElement.hxx
62   SMDS_MeshFace.hxx
63   SMDS_MeshGroup.hxx
64   SMDS_MeshInfo.hxx
65   SMDS_MeshNode.hxx
66   SMDS_MeshObject.hxx
67   SMDS_MeshVolume.hxx
68   SMDS_PolygonalFaceOfNodes.hxx
69   SMDS_Position.hxx
70   SMDS_SetIterator.hxx
71   SMDS_SpacePosition.hxx
72   SMDS_StdIterator.hxx
73   SMDS_TypeOfPosition.hxx
74   SMDS_UnstructuredGrid.hxx
75   SMDS_VertexPosition.hxx
76   SMDS_VolumeOfNodes.hxx
77   SMDS_VolumeTool.hxx
78   SMDS_VtkCellIterator.hxx
79   SMDS_ElementHolder.hxx
80   SMESH_SMDS.hxx
81   chrono.hxx
82   )
83
84 # --- sources ---
85
86 # sources / static
87 SET(SMDS_SOURCES
88   SMDS_BallElement.cxx
89   SMDS_Downward.cxx
90   SMDS_CellOfNodes.cxx
91   SMDS_ElementFactory.cxx
92   SMDS_FaceOfNodes.cxx
93   SMDS_FacePosition.cxx
94   SMDS_LinearEdge.cxx
95   SMDS_MemoryLimit.cxx
96   SMDS_Mesh.cxx
97   SMDS_MeshCell.cxx
98   SMDS_MeshElement.cxx
99   SMDS_MeshGroup.cxx
100   SMDS_MeshNode.cxx
101   SMDS_MeshObject.cxx
102   SMDS_MeshVolume.cxx
103   SMDS_PolygonalFaceOfNodes.cxx
104   SMDS_SpacePosition.cxx
105   SMDS_UnstructuredGrid.cxx
106   SMDS_VolumeOfNodes.cxx
107   SMDS_VolumeTool.cxx
108   SMDS_VtkCellIterator.cxx
109   SMDS_ElementHolder.cxx
110   chrono.cxx
111 )
112
113 # bin programs
114 SET(SMDS_MemoryLimit_SOURCES
115   SMDS_MemoryLimit.cxx
116 )
117
118 # --- rules ---
119
120 ADD_LIBRARY(SMDS ${SMDS_SOURCES})
121 TARGET_LINK_LIBRARIES(SMDS ${_link_LIBRARIES} )
122 INSTALL(TARGETS SMDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
123
124 ADD_EXECUTABLE(SMDS_MemoryLimit ${SMDS_MemoryLimit_SOURCES})
125 TARGET_LINK_LIBRARIES(SMDS_MemoryLimit ${_link_LIBRARIES})
126 INSTALL(TARGETS SMDS_MemoryLimit EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
127
128 INSTALL(FILES ${SMDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})