Salome HOME
Useful commits from master and V8_5_0
[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_Intersection.h
34     FeaturesPlugin_Partition.h
35     FeaturesPlugin_Pipe.h
36     FeaturesPlugin_Placement.h
37     FeaturesPlugin_CompositeBoolean.h
38     FeaturesPlugin_CompositeSketch.h
39     FeaturesPlugin_ExtrusionBoolean.h
40     FeaturesPlugin_ExtrusionCut.h
41     FeaturesPlugin_ExtrusionFuse.h
42     FeaturesPlugin_RevolutionBoolean.h
43     FeaturesPlugin_RevolutionCut.h
44     FeaturesPlugin_RevolutionFuse.h
45     FeaturesPlugin_Union.h
46     FeaturesPlugin_ValidatorTransform.h
47     FeaturesPlugin_Validators.h
48     FeaturesPlugin_RemoveSubShapes.h
49     FeaturesPlugin_Tools.h
50     FeaturesPlugin_Symmetry.h
51     FeaturesPlugin_Scale.h
52     FeaturesPlugin_MultiTranslation.h
53     FeaturesPlugin_MultiRotation.h
54     FeaturesPlugin_Fillet.h
55     FeaturesPlugin_Measurement.h
56 )
57
58 SET(PROJECT_SOURCES
59     FeaturesPlugin_Plugin.cpp
60     FeaturesPlugin_Extrusion.cpp
61     FeaturesPlugin_Recover.cpp
62     FeaturesPlugin_Revolution.cpp
63     FeaturesPlugin_Rotation.cpp
64     FeaturesPlugin_Translation.cpp
65     FeaturesPlugin_Boolean.cpp
66     FeaturesPlugin_Intersection.cpp
67     FeaturesPlugin_Partition.cpp
68     FeaturesPlugin_Pipe.cpp
69     FeaturesPlugin_Placement.cpp
70     FeaturesPlugin_CompositeBoolean.cpp
71     FeaturesPlugin_CompositeSketch.cpp
72     FeaturesPlugin_ExtrusionBoolean.cpp
73     FeaturesPlugin_ExtrusionCut.cpp
74     FeaturesPlugin_ExtrusionFuse.cpp
75     FeaturesPlugin_RevolutionBoolean.cpp
76     FeaturesPlugin_RevolutionCut.cpp
77     FeaturesPlugin_RevolutionFuse.cpp
78     FeaturesPlugin_Union.cpp
79     FeaturesPlugin_ValidatorTransform.cpp
80     FeaturesPlugin_Validators.cpp
81     FeaturesPlugin_RemoveSubShapes.cpp
82     FeaturesPlugin_Tools.cpp
83     FeaturesPlugin_Symmetry.cpp
84     FeaturesPlugin_Scale.cpp
85     FeaturesPlugin_MultiTranslation.cpp
86     FeaturesPlugin_MultiRotation.cpp
87     FeaturesPlugin_Fillet.cpp
88     FeaturesPlugin_Measurement.cpp
89 )
90
91 SET(XML_RESOURCES
92   plugin-Features.xml
93   extrusion_widget.xml
94   extrusioncut_widget.xml
95   extrusionfuse_widget.xml
96   revolution_widget.xml
97   revolutioncut_widget.xml
98   revolutionfuse_widget.xml
99   rotation_widget.xml
100   translation_widget.xml
101   boolean_widget.xml
102   recover_widget.xml
103   partition_widget.xml
104   placement_widget.xml
105   intersection_widget.xml
106   pipe_widget.xml
107   remove_subshapes_widget.xml
108   union_widget.xml
109   symmetry_widget.xml
110   scale_widget.xml
111   multitranslation_widget.xml
112   multirotation_widget.xml
113   fillet_widget.xml
114   measurement_widget.xml
115 )
116
117 SET(TEXT_RESOURCES
118     FeaturesPlugin_msg_en.ts
119     FeaturesPlugin_msg_ru.ts
120 )
121
122 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
123
124
125 INCLUDE_DIRECTORIES(
126   ../ModelAPI
127   ../GeomAPI
128   ../GeomAlgoAPI
129   ../GeomValidators
130   ../Events
131 )
132
133 SET(PROJECT_LIBRARIES
134     Events
135     ModelAPI
136     GeomAPI
137     GeomAlgoAPI
138     GeomValidators
139 )
140
141 ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS)
142 ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
143 TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES})
144
145 INSTALL(TARGETS FeaturesPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
146 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
147 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Features)
148 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
149
150 ADD_UNIT_TESTS(TestExtrusion.py
151                TestExtrusionCut.py
152                TestExtrusionFuse.py
153                TestRevolution.py
154                TestRevolutionCut.py
155                TestRevolutionFuse.py
156                TestCompositeFeaturesOnCompSolids.py
157                TestPartition.py
158                TestPlacement.py
159                TestTranslation.py
160                TestRotation.py
161                TestBoolean.py
162                TestBooleanCompSolids.py
163                TestBooleanSmash.py
164                TestBooleanFill.py
165                TestBooleanFillWithPlane.py
166                TestMultiBoolean.py
167                TestSerialBoolean.py
168                TestIntersection.py
169                TestUnion.py
170                TestUnionFaces.py
171                TestRemoveSubShapes.py
172                TestRemoveSubShapes2.py
173                TestPipe.py
174                TestRecover.py
175                TestRecover1798.py
176                TestFillEdgeVertex.py
177                TestFillEdgeEdge.py
178                TestFillEdgeEdgeIntersected.py
179                TestFillEdgeWire.py
180                TestFillEdgeFace.py
181                TestFillEdgeShell.py
182                TestFillEdgeSolid.py
183                TestFillEdgeSolidIntersected.py
184                TestFillWireVertex.py
185                TestFillWireEdge.py
186                TestFillWireWire.py
187                TestFillWireFace.py
188                TestFillWireShell.py
189                TestFillWireSolid.py
190                TestFillFaceVertex.py
191                TestFillFaceEdge.py
192                TestFillFaceEdgeInside.py
193                TestFillFaceEdgePerpendicular.py
194                TestFillFaceWire.py
195                TestFillFaceFace.py
196                TestFillFaceShell.py
197                TestFillFaceSolid.py
198                TestFillCompFaceSolid.py
199                TestFillShellVertex.py
200                TestFillShellEdge.py
201                TestFillShellConstrPlane.py
202                TestFillShellWire.py
203                TestFillShellFace.py
204                TestFillShellShell.py
205                TestFillShellSolid.py
206                TestFillSolid2ConstructionPlanes.py
207                TestFillSolidEdge.py
208                TestFillSolidFace.py
209                TestFillSolidCompFace.py
210                TestFillSolidShell.py
211                TestFillSolidCompShell.py
212                TestPartition2Faces.py
213                TestPartition2Solids.py
214                TestPartition2Wires.py
215                TestPartitionBox4Planes.py
216                TestPartitionEdgeSolid.py
217                TestPartitionFace2Solid.py
218 #               TestPartitionFaceSolid.py
219                TestPartitionFaceWire.py
220                TestPartitionInclinedFaceSolid.py
221                TestPartitionWireFaceSolid.py
222                TestUnion4CurvedFaces.py
223                TestUnion4Faces.py
224                TestUnionOfUnion.py
225                TestMeasurementLength.py
226                TestMeasurementDistance.py
227                TestMeasurementRadius.py
228                TestMeasurementAngle.py
229                Test1922.py
230                Test1942.py
231                Test1915.py
232                Test2023.py
233                Test2046.py
234                Test2038.py
235                Test2172.py
236                Test2194.py
237                Test2197_1.py
238                Test2197_2.py
239                Test2197_3.py
240                Test2197_4.py
241                Test2215.py
242                Test2222.py
243                Test2233.py
244                Test2231.py
245                Test2240.py
246                Test2246.py
247                Test2248.py
248                Test2251.py
249                Test2255.py
250                Test2289.py
251                Test2304.py
252                Test2304_2.py
253                Test2375.py
254                Test2377.py
255                Test2394.py
256                Test2395.py
257                Test2419_1.py
258                Test2419_2.py
259                Test2419_3.py
260                Test2465.py
261                Test2495.py
262                Test2514.py
263                Test2520.py
264 )