Salome HOME
Copyrights update 2015.
[modules/geom.git] / src / GEOMAlgo / CMakeLists.txt
1 # Copyright (C) 2012-2015  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_ClsfSolid.hxx
55   GEOMAlgo_ClsfSurf.hxx
56   GEOMAlgo_CoupleOfShapes.hxx
57   GEOMAlgo_DataMapIteratorOfDataMapOfPassKeyInteger.hxx
58   GEOMAlgo_DataMapOfPassKeyInteger.hxx
59   GEOMAlgo_DataMapOfShapeMapOfShape.hxx
60   GEOMAlgo_DataMapOfShapePnt.hxx
61   GEOMAlgo_FinderShapeOn.hxx
62   GEOMAlgo_FinderShapeOn1.hxx
63   GEOMAlgo_FinderShapeOn2.hxx
64   GEOMAlgo_FinderShapeOnQuad.hxx
65   GEOMAlgo_GetInPlace.hxx
66   GEOMAlgo_GetInPlaceAPI.hxx
67   GEOMAlgo_GlueAnalyser.hxx
68   GEOMAlgo_GlueDetector.hxx
69   GEOMAlgo_Gluer.hxx
70   GEOMAlgo_Gluer2.hxx
71   GEOMAlgo_GluerAlgo.hxx
72   GEOMAlgo_HAlgo.hxx
73   GEOMAlgo_IndexedDataMapOfIntegerShape.hxx
74   GEOMAlgo_IndexedDataMapOfPassKeyShapeListOfShape.hxx
75   GEOMAlgo_IndexedDataMapOfShapeBndSphere.hxx
76   GEOMAlgo_IndexedDataMapOfShapeBox.hxx
77   GEOMAlgo_IndexedDataMapOfShapeIndexedMapOfShape.hxx
78   GEOMAlgo_IndexedDataMapOfShapeShapeInfo.hxx
79   GEOMAlgo_IndexedDataMapOfShapeState.hxx
80   GEOMAlgo_KindOfBounds.hxx
81   GEOMAlgo_KindOfClosed.hxx
82   GEOMAlgo_KindOfName.hxx
83   GEOMAlgo_KindOfShape.hxx
84   GEOMAlgo_ListIteratorOfListOfCoupleOfShapes.hxx
85   GEOMAlgo_ListIteratorOfListOfPnt.hxx
86   GEOMAlgo_ListOfCoupleOfShapes.hxx
87   GEOMAlgo_ListOfPnt.hxx
88   GEOMAlgo_PassKey.hxx
89   GEOMAlgo_PassKeyMapHasher.hxx
90   GEOMAlgo_PassKeyShape.hxx
91   GEOMAlgo_PassKeyShapeMapHasher.hxx
92   GEOMAlgo_RemoverWebs.hxx
93   GEOMAlgo_ShapeAlgo.hxx
94   GEOMAlgo_ShapeInfo.hxx
95   GEOMAlgo_ShapeInfoFiller.hxx
96   GEOMAlgo_ShapeSolid.hxx
97   GEOMAlgo_ShellSolid.hxx
98   GEOMAlgo_SolidSolid.hxx
99   GEOMAlgo_Splitter.hxx
100   GEOMAlgo_State.hxx
101   GEOMAlgo_StateCollector.hxx
102   GEOMAlgo_SurfaceTools.hxx
103   GEOMAlgo_VertexSolid.hxx
104   GEOMAlgo_WireSolid.hxx
105   )
106
107 # --- sources ---
108
109 SET(GEOMAlgo_SOURCES
110   GEOMAlgo_Algo.cxx
111   GEOMAlgo_AlgoTools.cxx
112   GEOMAlgo_AlgoTools_1.cxx
113   GEOMAlgo_BndSphere.cxx
114   GEOMAlgo_BndSphereTree.cxx
115   GEOMAlgo_BoxBndTree.cxx
116   GEOMAlgo_BuilderShape.cxx
117   GEOMAlgo_Clsf.cxx
118   GEOMAlgo_ClsfBox.cxx
119   GEOMAlgo_ClsfSolid.cxx
120   GEOMAlgo_ClsfSurf.cxx
121   GEOMAlgo_CoupleOfShapes.cxx
122   GEOMAlgo_FinderShapeOn.cxx
123   GEOMAlgo_FinderShapeOn1.cxx
124   GEOMAlgo_FinderShapeOn2.cxx
125   GEOMAlgo_FinderShapeOnQuad.cxx
126   GEOMAlgo_GetInPlace.cxx
127   GEOMAlgo_GetInPlace_1.cxx
128   GEOMAlgo_GetInPlace_2.cxx
129   GEOMAlgo_GetInPlace_3.cxx
130   GEOMAlgo_GetInPlaceAPI.cxx
131   GEOMAlgo_GlueAnalyser.cxx
132   GEOMAlgo_GlueDetector.cxx
133   GEOMAlgo_Gluer.cxx
134   GEOMAlgo_Gluer2.cxx
135   GEOMAlgo_Gluer2_1.cxx
136   GEOMAlgo_Gluer2_2.cxx
137   GEOMAlgo_Gluer2_3.cxx
138   GEOMAlgo_GluerAlgo.cxx
139   GEOMAlgo_HAlgo.cxx
140   GEOMAlgo_PassKey.cxx
141   GEOMAlgo_PassKeyMapHasher.cxx
142   GEOMAlgo_PassKeyShape.cxx
143   GEOMAlgo_PassKeyShapeMapHasher.cxx
144   GEOMAlgo_RemoverWebs.cxx
145   GEOMAlgo_ShapeAlgo.cxx
146   GEOMAlgo_ShapeInfo.cxx
147   GEOMAlgo_ShapeInfoFiller.cxx
148   GEOMAlgo_ShapeInfoFiller_1.cxx
149   GEOMAlgo_ShapeSolid.cxx
150   GEOMAlgo_ShellSolid.cxx
151   GEOMAlgo_SolidSolid.cxx
152   GEOMAlgo_Splitter.cxx
153   GEOMAlgo_StateCollector.cxx
154   GEOMAlgo_SurfaceTools.cxx
155   GEOMAlgo_VertexSolid.cxx
156   GEOMAlgo_WireSolid.cxx
157   )
158
159 # --- rules ---
160
161 ADD_LIBRARY(GEOMAlgo ${GEOMAlgo_SOURCES})
162 TARGET_LINK_LIBRARIES(GEOMAlgo ${_link_LIBRARIES})
163 INSTALL(TARGETS GEOMAlgo EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
164
165 INSTALL(FILES ${GEOMAlgo_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
166
167