]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/CMakeLists.txt
Salome HOME
[Code coverage FeaturesPlugin]: Improve coverage of Common, Smash, Measurement and...
[modules/shaper.git] / src / FeaturesPlugin / CMakeLists.txt
1 ## Copyright (C) 2014-2017  CEA/DEN, EDF R&D
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
18 ## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
19 ##
20
21 INCLUDE(Common)
22 INCLUDE(UnitTest)
23
24 SET(PROJECT_HEADERS
25     FeaturesPlugin.h
26     FeaturesPlugin_Plugin.h
27     FeaturesPlugin_Extrusion.h
28     FeaturesPlugin_Recover.h
29     FeaturesPlugin_Revolution.h
30     FeaturesPlugin_Rotation.h
31     FeaturesPlugin_Translation.h
32     FeaturesPlugin_Boolean.h
33     FeaturesPlugin_BooleanCut.h
34     FeaturesPlugin_BooleanFuse.h
35     FeaturesPlugin_BooleanCommon.h
36     FeaturesPlugin_BooleanSmash.h
37     FeaturesPlugin_BooleanFill.h
38     FeaturesPlugin_Intersection.h
39     FeaturesPlugin_Partition.h
40     FeaturesPlugin_Pipe.h
41     FeaturesPlugin_Placement.h
42     FeaturesPlugin_CompositeBoolean.h
43     FeaturesPlugin_CompositeSketch.h
44     FeaturesPlugin_ExtrusionBoolean.h
45     FeaturesPlugin_ExtrusionCut.h
46     FeaturesPlugin_ExtrusionFuse.h
47     FeaturesPlugin_RevolutionBoolean.h
48     FeaturesPlugin_RevolutionCut.h
49     FeaturesPlugin_RevolutionFuse.h
50     FeaturesPlugin_Union.h
51     FeaturesPlugin_ValidatorTransform.h
52     FeaturesPlugin_Validators.h
53     FeaturesPlugin_RemoveSubShapes.h
54     FeaturesPlugin_Tools.h
55     FeaturesPlugin_Symmetry.h
56     FeaturesPlugin_Scale.h
57     FeaturesPlugin_MultiTranslation.h
58     FeaturesPlugin_MultiRotation.h
59     FeaturesPlugin_Fillet.h
60     FeaturesPlugin_Measurement.h
61     FeaturesPlugin_FusionFaces.h
62 )
63
64 SET(PROJECT_SOURCES
65     FeaturesPlugin_Plugin.cpp
66     FeaturesPlugin_Extrusion.cpp
67     FeaturesPlugin_Recover.cpp
68     FeaturesPlugin_Revolution.cpp
69     FeaturesPlugin_Rotation.cpp
70     FeaturesPlugin_Translation.cpp
71     FeaturesPlugin_Boolean.cpp
72     FeaturesPlugin_BooleanCut.cpp
73     FeaturesPlugin_BooleanFuse.cpp
74     FeaturesPlugin_BooleanCommon.cpp
75     FeaturesPlugin_BooleanSmash.cpp
76     FeaturesPlugin_Intersection.cpp
77     FeaturesPlugin_Partition.cpp
78     FeaturesPlugin_Pipe.cpp
79     FeaturesPlugin_Placement.cpp
80     FeaturesPlugin_CompositeBoolean.cpp
81     FeaturesPlugin_CompositeSketch.cpp
82     FeaturesPlugin_ExtrusionBoolean.cpp
83     FeaturesPlugin_ExtrusionCut.cpp
84     FeaturesPlugin_ExtrusionFuse.cpp
85     FeaturesPlugin_RevolutionBoolean.cpp
86     FeaturesPlugin_RevolutionCut.cpp
87     FeaturesPlugin_RevolutionFuse.cpp
88     FeaturesPlugin_Union.cpp
89     FeaturesPlugin_ValidatorTransform.cpp
90     FeaturesPlugin_Validators.cpp
91     FeaturesPlugin_RemoveSubShapes.cpp
92     FeaturesPlugin_Tools.cpp
93     FeaturesPlugin_Symmetry.cpp
94     FeaturesPlugin_Scale.cpp
95     FeaturesPlugin_MultiTranslation.cpp
96     FeaturesPlugin_MultiRotation.cpp
97     FeaturesPlugin_Fillet.cpp
98     FeaturesPlugin_Measurement.cpp
99     FeaturesPlugin_FusionFaces.cpp
100 )
101
102 SET(XML_RESOURCES
103   plugin-Features.xml
104   extrusion_widget.xml
105   extrusioncut_widget.xml
106   extrusionfuse_widget.xml
107   revolution_widget.xml
108   revolutioncut_widget.xml
109   revolutionfuse_widget.xml
110   rotation_widget.xml
111   translation_widget.xml
112   boolean_widget.xml
113   boolean_fuse_widget.xml
114   boolean_common_widget.xml
115   boolean_fill_widget.xml
116   boolean_smash_widget.xml
117   recover_widget.xml
118   partition_widget.xml
119   placement_widget.xml
120   intersection_widget.xml
121   pipe_widget.xml
122   remove_subshapes_widget.xml
123   union_widget.xml
124   symmetry_widget.xml
125   scale_widget.xml
126   multitranslation_widget.xml
127   multirotation_widget.xml
128   fillet_widget.xml
129   measurement_widget.xml
130   fusion_faces_widget.xml
131 )
132
133 SET(TEXT_RESOURCES
134     FeaturesPlugin_msg_en.ts
135     FeaturesPlugin_msg_ru.ts
136 )
137
138 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
139
140
141 INCLUDE_DIRECTORIES(
142   ../ModelAPI
143   ../GeomAPI
144   ../GeomAlgoAPI
145   ../GeomValidators
146   ../Events
147   ../Config
148   ${OpenCASCADE_INCLUDE_DIR}
149 )
150
151 SET(PROJECT_LIBRARIES
152     Events
153     ModelAPI
154     GeomAPI
155     GeomAlgoAPI
156     GeomValidators
157     Config
158     ${OpenCASCADE_Visualization_LIBRARIES}
159 )
160
161 ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS)
162 ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
163 TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES})
164
165 INSTALL(TARGETS FeaturesPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
166 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
167 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Features)
168 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
169
170 ADD_UNIT_TESTS(TestExtrusion.py
171                TestExtrusionCut.py
172                TestExtrusionFuse.py
173                TestRevolution.py
174                TestRevolutionCut.py
175                TestRevolutionFuse.py
176                TestCompositeFeaturesOnCompSolids.py
177                TestPartition.py
178                TestPlacement_Vertex_Vertex.py
179                TestPlacement_Edge_Vertex.py
180                TestPlacement_Edge_Edge.py
181                TestPlacement_Face_Vertex.py
182                TestPlacement_Face_Edge.py
183                TestPlacement_Face_Face.py
184                TestTranslation.py
185                TestRotation.py
186                TestBoolean1.py
187                TestBoolean2.py
188                TestBoolean3.py
189                TestBooleanCompSolids.py
190                TestBooleanSmash.py
191                TestBooleanFill.py
192                TestBooleanFillWithPlane.py
193                TestMultiBoolean.py
194                TestSerialBoolean.py
195                TestIntersection.py
196                TestUnion.py
197                TestUnionFaces.py
198                TestRemoveSubShapes.py
199                TestRemoveSubShapes2.py
200                TestRemoveSubShapes3.py
201                TestRemoveSubShapes4.py
202                TestRemoveSubShapes5.py
203                TestRemoveSubShapes6.py
204                TestPipe.py
205                TestRecover.py
206                TestRecover1798.py
207                TestFillEdgeVertex.py
208                TestFillEdgeEdge.py
209                TestFillEdgeEdgeIntersected.py
210                TestFillEdgeWire.py
211                TestFillEdgeFace.py
212                TestFillEdgeShell.py
213                TestFillEdgeSolid.py
214                TestFillEdgeSolidIntersected.py
215                TestFillWireVertex.py
216                TestFillWireEdge.py
217                TestFillWireWire.py
218                TestFillWireFace.py
219                TestFillWireShell.py
220                TestFillWireSolid.py
221                TestFillFaceVertex.py
222                TestFillFaceEdge.py
223                TestFillFaceEdgeInside.py
224                TestFillFaceEdgePerpendicular.py
225                TestFillFaceWire.py
226                TestFillFaceFace.py
227                TestFillFaceShell.py
228                TestFillFaceSolid.py
229                TestFillCompFaceSolid.py
230                TestFillShellVertex.py
231                TestFillShellEdge.py
232                TestFillShellConstrPlane.py
233                TestFillShellWire.py
234                TestFillShellFace.py
235                TestFillShellShell.py
236                TestFillShellSolid.py
237                TestFillSolid2ConstructionPlanes.py
238                TestFillSolidEdge.py
239                TestFillSolidFace.py
240                TestFillSolidCompFace.py
241                TestFillSolidShell.py
242                TestFillSolidCompShell.py
243                TestPartition2Faces.py
244                TestPartition2Solids.py
245                TestPartition2Wires.py
246                TestPartitionBox4Planes.py
247                TestPartitionEdgeSolid.py
248                TestPartitionFace2Solid.py
249 #               TestPartitionFaceSolid.py
250                TestPartitionFaceWire.py
251                TestPartitionInclinedFaceSolid.py
252                TestPartitionWireFaceSolid.py
253                TestUnion4CurvedFaces.py
254                TestUnion4CurvedFaces_2.py
255                TestUnion4Faces.py
256                TestUnionOfUnion.py
257                TestMeasurementLength.py
258                TestMeasurementDistance.py
259                TestMeasurementRadius.py
260                TestMeasurementAngle.py
261                TestMeasurementAngle3Points.py
262                TestFusionFaces.py
263                Test1379.py
264                Test1922.py
265                Test1942.py
266                Test1915.py
267                Test2023.py
268                Test2046.py
269                Test2038.py
270                Test2172.py
271                Test2194.py
272                Test2197_1.py
273                Test2197_2.py
274                Test2197_3.py
275                Test2197_4.py
276                Test2215.py
277                Test2222.py
278                Test2233.py
279                Test2231.py
280                Test2240.py
281                Test2246.py
282                Test2248.py
283                Test2251.py
284                Test2255.py
285                Test2289.py
286                Test2304.py
287                Test2304_2.py
288                Test2375.py
289                Test2377.py
290                Test2394.py
291                Test2395.py
292                Test2419_1.py
293                Test2419_2.py
294                Test2419_3.py
295                Test2465.py
296                Test2495.py
297                Test2514.py
298                Test2520.py
299                TestBooleanCut_CompSolid_CompSolid.py
300                TestBooleanCut_CompSolidCompound_CompSolidCompound.py
301                TestBooleanCut_Edge_Edge.py
302                TestBooleanCut_Edge_Face.py
303                TestBooleanCut_EdgeCompound_EdgeCompound.py
304                TestBooleanCut_EdgeCompound_Solid.py
305                TestBooleanCut_Face_Face.py
306                TestBooleanCut_Face_Solid.py
307                TestBooleanCut_FaceCompound_FaceCompound.py
308                TestBooleanCut_Shell_Shell.py
309                TestBooleanCut_ShellCompound_ShellCompound.py
310                TestBooleanCut_Solid_Solid.py
311                TestBooleanCut_SolidCompound_SolidCompound.py
312                TestBooleanCut_Vertex_Vertex.py
313                TestBooleanCut_VertexCompound_Solid.py
314                TestBooleanCut_VertexCompound_VertexCompound.py
315                TestBooleanCut_Wire_Face.py
316                TestBooleanCut_Wire_Wire.py
317                TestBooleanCut_WireCompound_WireCompound.py
318                TestBooleanSmash_Face_Face.py
319                TestBooleanSmash_SubSolid_Solid.py
320                TestBooleanFuse_SimpleMode.py
321                TestBooleanFuse_RemoveEdges.py
322                TestBooleanCommon_Vertex_Vertex.py
323                TestBooleanCommon_VertexCompound_VertexCompound.py
324                TestBooleanCommon_Edge_Edge.py
325                TestBooleanCommon_EdgeCompound_EdgeCompound.py
326                TestBooleanCommon_Wire_Wire.py
327                TestBooleanCommon_WireCompound_WireCompound.py
328                TestBooleanCommon_Face_Face.py
329                TestBooleanCommon_Face_Plane.py
330                TestBooleanCommon_FaceCompound_FaceCompound.py
331                TestBooleanCommon_Shell_Shell.py
332                TestBooleanCommon_ShellCompound_ShellCompound.py
333                TestBooleanCommon_Solid_Face.py
334                TestBooleanCommon_Solid_Shell.py
335                TestBooleanCommon_Solid_Solid.py
336                TestBooleanCommon_SolidCompound_Face.py
337                TestBooleanCommon_SolidCompound_Shell.py
338                TestBooleanCommon_SolidCompound_SolidCompound.py
339                TestBooleanCommon_SubCompound_Solid.py
340                TestBooleanCommon_SubSolid_Solid.py
341                TestBooleanCommon_CompSolid_Face.py
342                TestBooleanCommon_CompSolid_Shell.py
343                TestBooleanCommon_CompSolid_CompSolid.py
344                TestBooleanCommon_CompSolidCompound_Face.py
345                TestBooleanCommon_CompSolidCompound_Shell.py
346                TestBooleanCommon_CompSolidCompound_CompSolidCompound.py
347                Test2596.py
348                Test2592.py
349                Test2588.py
350                Test1467.py
351                TestPartitionSubCompsolidWithCompSolid1.py
352                TestPartitionSubCompsolidWithCompSolid2.py
353                TestPartitionSubCompsolidWithCompSolid3.py
354                TestPartitionSubCompsolidWithSolid1.py
355                TestPartitionSubCompsolidWithSolid2.py
356                TestPartitionSubCompsolidWithSolid3.py
357                TestPartitionSubCompsolidWithSolid4.py
358                TestPartitionSubCompsolidWithSolid5.py
359                TestPartitionSubCompsolidWithFace1.py
360                TestPartitionSubCompsolidWithFace2.py
361                TestPartitionSubCompsolidWithFace3.py
362                TestPartitionSubCompsolidWithFace4.py
363                TestPartitionSubCompsolidWithFace5.py
364                TestPartitionSubCompsolidWithPlane1.py
365                TestPartitionSubCompsolidWithPlane2.py
366                TestPartitionSubCompsolidWithPlane3.py
367                TestPartitionSubCompsolidWithPlane4.py
368                TestPartitionSubCompsolidWithPlane5.py
369                TestBooleanFuse_Vertex_Vertex.py
370                TestBooleanFuse_VertexCompound_VertexCompound.py
371                TestBooleanFuse_Edge_Edge.py
372                TestBooleanFuse_EdgeCompound_EdgeCompound.py
373                TestBooleanFuse_Wire_Wire.py
374                TestBooleanFuse_WireCompound_WireCompound.py
375                TestBooleanFuse_Face_Face.py
376                TestBooleanFuse_FaceCompound_FaceCompound.py
377                TestBooleanFuse_Shell_Shell.py
378                TestBooleanFuse_ShellCompound_ShellCompound.py
379                TestBooleanFuse_Solid_Solid.py
380                TestBooleanFuse_SolidCompound_SolidCompound.py
381                TestBooleanFuse_CompSolid_CompSolid.py
382                TestBooleanFuse_CompSolidCompound_CompSolidCompound.py
383                Test1816.py
384                Test2631.py
385                Test2650.py
386                Test2681.py
387                Test2686.py
388                Test2689.py
389                Test2693.py
390                Test2698.py
391                Test2701.py
392                Test2724.py
393                Test2692.py
394                Test2617.py
395                Test2729.py
396                Test2751.py
397 )