Salome HOME
Task 5.1.3 Sketcher: angle dimension (issue #3061)
[modules/shaper.git] / src / SketchPlugin / CMakeLists.txt
1 # Copyright (C) 2014-2019  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 email : webmaster.salome@opencascade.com
18 #
19
20 INCLUDE(Common)
21 INCLUDE(UnitTest)
22
23 SET(PROJECT_HEADERS
24     SketchPlugin.h
25     SketchPlugin_Arc.h
26     SketchPlugin_Circle.h
27     SketchPlugin_Constraint.h
28     SketchPlugin_ConstraintAngle.h
29     SketchPlugin_ConstraintBase.h
30     SketchPlugin_ConstraintCoincidence.h
31     SketchPlugin_ConstraintCoincidenceInternal.h
32     SketchPlugin_ConstraintCollinear.h
33     SketchPlugin_ConstraintDistance.h
34     SketchPlugin_ConstraintDistanceAlongDir.h
35     SketchPlugin_ConstraintDistanceHorizontal.h
36     SketchPlugin_ConstraintDistanceVertical.h
37     SketchPlugin_ConstraintEqual.h
38     SketchPlugin_Fillet.h
39     SketchPlugin_ConstraintHorizontal.h
40     SketchPlugin_ConstraintLength.h
41     SketchPlugin_ConstraintMiddle.h
42     SketchPlugin_ConstraintMirror.h
43     SketchPlugin_ConstraintParallel.h
44     SketchPlugin_ConstraintPerpendicular.h
45     SketchPlugin_ConstraintRadius.h
46     SketchPlugin_ConstraintRigid.h
47     SketchPlugin_ConstraintTangent.h
48     SketchPlugin_ConstraintVertical.h
49     SketchPlugin_Ellipse.h
50     SketchPlugin_EllipticArc.h
51     SketchPlugin_ExternalValidator.h
52     SketchPlugin_Feature.h
53     SketchPlugin_IntersectionPoint.h
54     SketchPlugin_Line.h
55     SketchPlugin_MacroArc.h
56     SketchPlugin_MacroArcReentrantMessage.h
57     SketchPlugin_MacroCircle.h
58     SketchPlugin_MacroEllipse.h
59     SketchPlugin_MacroEllipticArc.h
60     SketchPlugin_MultiRotation.h
61     SketchPlugin_MultiTranslation.h
62     SketchPlugin_Plugin.h
63     SketchPlugin_Point.h
64     SketchPlugin_Projection.h
65     SketchPlugin_Sketch.h
66     SketchPlugin_SketchEntity.h
67     SketchPlugin_Split.h
68     SketchPlugin_Tools.h
69     SketchPlugin_Trim.h
70     SketchPlugin_Validators.h
71     SketchPlugin_SketchDrawer.h
72 )
73
74 SET(PROJECT_SOURCES
75     SketchPlugin_Arc.cpp
76     SketchPlugin_Circle.cpp
77     SketchPlugin_Constraint.cpp
78     SketchPlugin_ConstraintAngle.cpp
79     SketchPlugin_ConstraintCoincidence.cpp
80     SketchPlugin_ConstraintCoincidenceInternal.cpp
81     SketchPlugin_ConstraintCollinear.cpp
82     SketchPlugin_ConstraintDistance.cpp
83     SketchPlugin_ConstraintDistanceAlongDir.cpp
84     SketchPlugin_ConstraintDistanceHorizontal.cpp
85     SketchPlugin_ConstraintDistanceVertical.cpp
86     SketchPlugin_ConstraintEqual.cpp
87     SketchPlugin_Fillet.cpp
88     SketchPlugin_ConstraintHorizontal.cpp
89     SketchPlugin_ConstraintLength.cpp
90     SketchPlugin_ConstraintMiddle.cpp
91     SketchPlugin_ConstraintMirror.cpp
92     SketchPlugin_ConstraintParallel.cpp
93     SketchPlugin_ConstraintPerpendicular.cpp
94     SketchPlugin_ConstraintRadius.cpp
95     SketchPlugin_ConstraintRigid.cpp
96     SketchPlugin_ConstraintTangent.cpp
97     SketchPlugin_ConstraintVertical.cpp
98     SketchPlugin_Ellipse.cpp
99     SketchPlugin_EllipticArc.cpp
100     SketchPlugin_ExternalValidator.cpp
101     SketchPlugin_Feature.cpp
102     SketchPlugin_IntersectionPoint.cpp
103     SketchPlugin_Line.cpp
104     SketchPlugin_MacroArc.cpp
105     SketchPlugin_MacroCircle.cpp
106     SketchPlugin_MacroEllipse.cpp
107     SketchPlugin_MacroEllipticArc.cpp
108     SketchPlugin_MultiRotation.cpp
109     SketchPlugin_MultiTranslation.cpp
110     SketchPlugin_Plugin.cpp
111     SketchPlugin_Point.cpp
112     SketchPlugin_Projection.cpp
113     SketchPlugin_Sketch.cpp
114     SketchPlugin_SketchEntity.cpp
115     SketchPlugin_Split.cpp
116     SketchPlugin_Tools.cpp
117     SketchPlugin_Trim.cpp
118     SketchPlugin_Validators.cpp
119     SketchPlugin_SketchDrawer.cpp
120 )
121
122 SET(PROJECT_LIBRARIES
123     Config
124     GeomAPI
125     GeomAlgoAPI
126     ModelAPI
127     ModelGeomAlgo
128     SketcherPrs
129     GeomDataAPI
130 )
131
132 SET(XML_RESOURCES
133   plugin-Sketch.xml
134   plugin-SketchDrawer.xml
135 )
136
137 SET(TEXT_RESOURCES
138         SketchPlugin_msg_en.ts
139         SketchPlugin_msg_fr.ts
140 )
141
142 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
143
144 ADD_DEFINITIONS(-DSKETCHPLUGIN_EXPORTS)
145 ADD_LIBRARY(SketchPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
146 TARGET_LINK_LIBRARIES(SketchPlugin ${PROJECT_LIBRARIES})
147
148 INCLUDE_DIRECTORIES(
149   ../Config
150   ../Events
151   ../ModelAPI
152   ../ModelGeomAlgo
153   ../GeomAPI
154   ../GeomAlgoAPI
155   ../GeomDataAPI
156   ../SketcherPrs
157 )
158
159 INSTALL(TARGETS SketchPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
160 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
161 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Sketch)
162 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
163
164 ADD_UNIT_TESTS(
165   Test1061.py
166   Test1577.py
167   Test1578.py
168   Test1673.py
169   Test1779.py
170   Test1924.py
171   Test1963.py
172   Test1966.py
173   Test1967.py
174   Test2034_1.py
175   Test2034_2.py
176   Test2034_3.py
177   Test2062.py
178   Test2095.py
179   Test2115.py
180   Test2119.py
181   Test2134.py
182   Test2157.py
183   Test2157_2.py
184   Test2224.py
185   Test2229.py
186   Test2239.py
187   Test2273.py
188   Test2280.py
189   Test2287.py
190   Test2341.py
191   Test2376.py
192   Test2390.py
193   Test2393.py
194   Test2425.py
195   Test2427.py
196   Test2440.py
197   Test2481.py
198   Test2654.py
199   Test2711.py
200   Test2741.py
201   Test2810.py
202   Test2824.py
203   Test2860.py
204   Test2894.py
205   Test3019.py
206   Test3087_1.py
207   Test3087_2.py
208   TestArcBehavior.py
209   TestChangeSketchPlane1.py
210   TestChangeSketchPlane2.py
211   TestChangeSketchPlane3.py
212   TestChangeSketchPlane4.py
213   TestConstraintAngle.py
214   TestConstraintAngle_v0_1.py
215   TestConstraintAngle_v0_2.py
216   TestConstraintAngle_v20191210_1.py
217   TestConstraintAngle_v20191210_2.py
218   TestConstraintAngleBehaviorDirect.py
219   TestConstraintAngleBehaviorSupplementary_1.py
220   TestConstraintAngleBehaviorSupplementary_2.py
221   TestConstraintAngleBehaviorBackward_1.py
222   TestConstraintAngleBehaviorBackward_2.py
223   TestConstraintAngleEllipse.py
224   TestConstraintCoincidence.py
225   TestConstraintCoincidenceEllipse.py
226   TestConstraintCoincidenceEllipticArc.py
227   TestConstraintCollinear.py
228   TestConstraintCollinearEllipse.py
229   TestConstraintDistance.py
230   TestConstraintDistanceEllipse.py
231   TestConstraintDistanceBehavior.py
232   TestConstraintDistanceHorizontal.py
233   TestConstraintDistanceVertical.py
234   TestConstraintDistanceZero.py
235   TestConstraintDistanceHorizontalZero.py
236   TestConstraintDistanceVerticalZero.py
237   TestConstraintEqual.py
238   TestConstraintEqualEllipse.py
239   TestConstraintFixed.py
240   TestConstraintHorizontal.py
241   TestConstraintHorizontalValidator.py
242   TestConstraintLength.py
243   TestConstraintMiddlePoint.py
244   TestConstraintMiddlePointOnArc.py
245   TestConstraintMiddlePointOnEllipticArc.py
246   TestConstraintParallel.py
247   TestConstraintPerpendicular.py
248   TestConstraintPerpendicularArcLine.py
249   TestConstraintPerpendicularEllipseLine.py
250   TestConstraintRadius.py
251   TestConstraintRadiusFailure.py
252   TestConstraintTangent.py
253   TestConstraintTangentEllipse.py
254   TestConstraintTangentEllipticArc.py
255   TestConstraintVertical.py
256   TestCreateArcByCenterStartEnd.py
257   TestCreateArcByTangentEdge.py
258   TestCreateArcByThreePoints.py
259   TestCreateArcByTransversalLine.py
260   TestCreateArcChangeType.py
261   TestCreateCircleByCenterAndPassed.py
262   TestCreateCircleByThreePoints.py
263   TestCreateCircleChangeType.py
264   TestCreateEllipseByCenterSemiaxisAndPassed.py
265   TestCreateEllipseByMajorAxisAndPassed.py
266   TestCreateEllipseByExternal.py
267   TestCreateEllipticArc.py
268   TestCreateEllipticArcByExternal.py
269   TestDegeneratedGeometry.py
270   TestDistanceDump.py
271   TestDistanceSignedVsUnsigned01.py
272   TestDistanceSignedVsUnsigned02.py
273   TestDistanceSignedVsUnsigned03.py
274   TestDistanceSignedVsUnsigned04.py
275   TestDistanceSignedVsUnsigned05.py
276   TestEdgesOrder.py
277   TestFillet.py
278   TestFilletAfterFolder.py
279   TestFilletInteracting.py
280   TestHighload.py
281   TestIntersectionChangeEdge.py
282   TestIntersectionWithCircle.py
283   TestIntersectionWithLine.py
284   TestIntersectionWithSpline.py
285   TestMirror.py
286   TestMultiRotation.py
287   TestMultiRotation01.py
288   TestMultiRotation02.py
289   TestMultiRotation03.py
290   TestMultiRotation04.py
291   TestMultiRotation05.py
292   TestMultiRotationWithParameter.py
293   TestMultiTranslation.py
294   TestPresentation.py
295   TestProjection.py
296   TestProjectionEllipse.py
297   TestProjectionEllipticArc.py
298   TestProjectionIntoResult.py
299   TestProjectionUpdate.py
300   TestRectangle.py
301   TestRemainingDoF.py
302   TestRemoveEllipse.py
303   TestRemoveEllipticArc.py
304   TestRemoveSketch.py
305   TestSignedDistancePointLine.py
306   TestSignedDistancePointPoint.py
307   TestSketchDrawer.py
308   TestSketchPointLine.py
309   TestSnowflake.py
310   TestSplit.py
311   TestSplitEllipse.py
312   TestSplitLine.py
313   TestSplitPreview.py
314   TestTrimArc01.py
315   TestTrimArc02.py
316   TestTrimArc03.py
317   TestTrimArc04.py
318   TestTrimArc05.py
319   TestTrimArc06.py
320   TestTrimArc07.py
321   TestTrimArc08.py
322   TestTrimCircle01.py
323   TestTrimCircle02.py
324   TestTrimCircle03.py
325   TestTrimCircle04.py
326   TestTrimCircle05.py
327   TestTrimCircleAndArc01.py
328   TestTrimEllipse.py
329   TestTrimLine01.py
330   TestTrimLine02.py
331   TestTrimLine03.py
332   TestTrimPreview.py
333   TestUpdateSketch.py
334 )
335
336 if(${SKETCHER_CHANGE_RADIUS_WHEN_MOVE})
337   ADD_UNIT_TESTS(
338     TestMoveArc.py
339     TestMoveCircle.py
340     TestMoveEllipse.py
341     TestMoveEllipticArc.py
342     TestMoveLine.py
343     TestMovementComplex.py
344     TestMovePoint.py
345   )
346 endif()