Salome HOME
3e3c48620f772385b16d0ad8d9c6c4e96557886f
[modules/geom.git] / src / GEOMAlgo / 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
22 # additional include directories
23 INCLUDE_DIRECTORIES(
24   ${CAS_INCLUDE_DIRS}
25   ${KERNEL_INCLUDE_DIRS}
26   ${PROJECT_SOURCE_DIR}/src/GEOMUtils
27   ${PROJECT_SOURCE_DIR}/src/GEOM
28   ${CMAKE_CURRENT_SOURCE_DIR}
29   )
30
31 # additional preprocessor / compiler flags
32 ADD_DEFINITIONS(
33   ${CAS_DEFINITIONS}
34   )
35
36 # libraries to link to
37 SET(_link_LIBRARIES
38   ${CAS_KERNEL} ${CAS_TKBool} ${CAS_TKBO} ${CAS_TKMesh}
39   GEOMbasic GEOMUtils
40   ${KERNEL_SALOMELocalTrace}
41   )
42
43 # --- headers ---
44
45 SET(GEOMAlgo_HEADERS
46   GEOMAlgo_Algo.hxx
47   GEOMAlgo_AlgoTools.hxx
48   GEOMAlgo_BndSphere.hxx
49   GEOMAlgo_BndSphereTree.hxx
50   GEOMAlgo_BoxBndTree.hxx
51   GEOMAlgo_BuilderShape.hxx
52   GEOMAlgo_Clsf.hxx
53   GEOMAlgo_ClsfBox.hxx
54   GEOMAlgo_ClsfQuad.hxx
55   GEOMAlgo_ClsfSolid.hxx
56   GEOMAlgo_ClsfSurf.hxx
57   GEOMAlgo_CoupleOfShapes.hxx
58   GEOMAlgo_DataMapIteratorOfDataMapOfPassKeyInteger.hxx
59   GEOMAlgo_DataMapOfPassKeyInteger.hxx
60   GEOMAlgo_DataMapOfShapeMapOfShape.hxx
61   GEOMAlgo_DataMapOfShapePnt.hxx
62   GEOMAlgo_Extractor.hxx
63   GEOMAlgo_FinderShapeOn.hxx
64   GEOMAlgo_FinderShapeOn1.hxx
65   GEOMAlgo_FinderShapeOn2.hxx
66   GEOMAlgo_FinderShapeOnQuad.hxx
67   GEOMAlgo_GetInPlace.hxx
68   GEOMAlgo_GetInPlaceAPI.hxx
69   GEOMAlgo_GlueAnalyser.hxx
70   GEOMAlgo_GlueDetector.hxx
71   GEOMAlgo_Gluer.hxx
72   GEOMAlgo_Gluer2.hxx
73   GEOMAlgo_GluerAlgo.hxx
74   GEOMAlgo_HAlgo.hxx
75   GEOMAlgo_IndexedDataMapOfIntegerShape.hxx
76   GEOMAlgo_IndexedDataMapOfPassKeyShapeListOfShape.hxx
77   GEOMAlgo_IndexedDataMapOfShapeBndSphere.hxx
78   GEOMAlgo_IndexedDataMapOfShapeBox.hxx
79   GEOMAlgo_IndexedDataMapOfShapeIndexedMapOfShape.hxx
80   GEOMAlgo_IndexedDataMapOfShapeShapeInfo.hxx
81   GEOMAlgo_IndexedDataMapOfShapeState.hxx
82   GEOMAlgo_KindOfBounds.hxx
83   GEOMAlgo_KindOfClosed.hxx
84   GEOMAlgo_KindOfDef.hxx
85   GEOMAlgo_KindOfName.hxx
86   GEOMAlgo_KindOfShape.hxx
87   GEOMAlgo_ListIteratorOfListOfCoupleOfShapes.hxx
88   GEOMAlgo_ListIteratorOfListOfPnt.hxx
89   GEOMAlgo_ListOfCoupleOfShapes.hxx
90   GEOMAlgo_ListOfPnt.hxx
91   GEOMAlgo_PassKey.hxx
92   GEOMAlgo_PassKeyMapHasher.hxx
93   GEOMAlgo_PassKeyShape.hxx
94   GEOMAlgo_PassKeyShapeMapHasher.hxx
95   GEOMAlgo_RemoverWebs.hxx
96   GEOMAlgo_ShapeAlgo.hxx
97   GEOMAlgo_ShapeInfo.hxx
98   GEOMAlgo_ShapeInfoFiller.hxx
99   GEOMAlgo_ShapeSolid.hxx
100   GEOMAlgo_ShellSolid.hxx
101   GEOMAlgo_SolidSolid.hxx
102   GEOMAlgo_Splitter.hxx
103   GEOMAlgo_State.hxx
104   GEOMAlgo_StateCollector.hxx
105   GEOMAlgo_SurfaceTools.hxx
106   GEOMAlgo_VertexSolid.hxx
107   GEOMAlgo_WireSolid.hxx
108   )
109
110 # --- sources ---
111
112 SET(GEOMAlgo_SOURCES
113   GEOMAlgo_Algo.cxx
114   GEOMAlgo_AlgoTools.cxx
115   GEOMAlgo_AlgoTools_1.cxx
116   GEOMAlgo_BndSphere.cxx
117   GEOMAlgo_BndSphereTree.cxx
118   GEOMAlgo_BoxBndTree.cxx
119   GEOMAlgo_BuilderShape.cxx
120   GEOMAlgo_Clsf.cxx
121   GEOMAlgo_ClsfBox.cxx
122   GEOMAlgo_ClsfQuad.cxx
123   GEOMAlgo_ClsfSolid.cxx
124   GEOMAlgo_ClsfSurf.cxx
125   GEOMAlgo_CoupleOfShapes.cxx
126   GEOMAlgo_FinderShapeOn2.cxx
127   GEOMAlgo_Extractor.cxx
128   GEOMAlgo_GetInPlace.cxx
129   GEOMAlgo_GetInPlace_1.cxx
130   GEOMAlgo_GetInPlace_2.cxx
131   GEOMAlgo_GetInPlace_3.cxx
132   GEOMAlgo_GetInPlaceAPI.cxx
133   GEOMAlgo_GlueAnalyser.cxx
134   GEOMAlgo_GlueDetector.cxx
135   GEOMAlgo_Gluer.cxx
136   GEOMAlgo_Gluer2.cxx
137   GEOMAlgo_Gluer2_1.cxx
138   GEOMAlgo_Gluer2_2.cxx
139   GEOMAlgo_Gluer2_3.cxx
140   GEOMAlgo_GluerAlgo.cxx
141   GEOMAlgo_HAlgo.cxx
142   GEOMAlgo_PassKey.cxx
143   GEOMAlgo_PassKeyMapHasher.cxx
144   GEOMAlgo_PassKeyShape.cxx
145   GEOMAlgo_PassKeyShapeMapHasher.cxx
146   GEOMAlgo_RemoverWebs.cxx
147   GEOMAlgo_ShapeAlgo.cxx
148   GEOMAlgo_ShapeInfo.cxx
149   GEOMAlgo_ShapeInfoFiller.cxx
150   GEOMAlgo_ShapeInfoFiller_1.cxx
151   GEOMAlgo_ShapeSolid.cxx
152   GEOMAlgo_ShellSolid.cxx
153   GEOMAlgo_SolidSolid.cxx
154   GEOMAlgo_Splitter.cxx
155   GEOMAlgo_StateCollector.cxx
156   GEOMAlgo_SurfaceTools.cxx
157   GEOMAlgo_VertexSolid.cxx
158   GEOMAlgo_WireSolid.cxx
159   )
160
161 # --- rules ---
162
163 ADD_LIBRARY(GEOMAlgo ${GEOMAlgo_SOURCES})
164 TARGET_LINK_LIBRARIES(GEOMAlgo ${_link_LIBRARIES})
165 INSTALL(TARGETS GEOMAlgo EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
166
167 INSTALL(FILES ${GEOMAlgo_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
168
169