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