]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchPlugin/CMakeLists.txt
Salome HOME
[Code coverage SketchPlugin]: Increase coverage for Distance, Trim and Split features
[modules/shaper.git] / src / SketchPlugin / 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     SketchPlugin.h
26     SketchPlugin_Arc.h
27     SketchPlugin_Circle.h
28     SketchPlugin_Constraint.h
29     SketchPlugin_ConstraintAngle.h
30     SketchPlugin_ConstraintBase.h
31     SketchPlugin_ConstraintCoincidence.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_ExternalValidator.h
51     SketchPlugin_Feature.h
52     SketchPlugin_IntersectionPoint.h
53     SketchPlugin_Line.h
54     SketchPlugin_MacroArc.h
55     SketchPlugin_MacroArcReentrantMessage.h
56     SketchPlugin_MacroCircle.h
57     SketchPlugin_MacroEllipse.h
58     SketchPlugin_MultiRotation.h
59     SketchPlugin_MultiTranslation.h
60     SketchPlugin_Plugin.h
61     SketchPlugin_Point.h
62     SketchPlugin_Projection.h
63     SketchPlugin_Sketch.h
64     SketchPlugin_SketchEntity.h
65     SketchPlugin_Split.h
66     SketchPlugin_Tools.h
67     SketchPlugin_Trim.h
68     SketchPlugin_Validators.h
69     SketchPlugin_SketchDrawer.h
70 )
71
72 SET(PROJECT_SOURCES
73     SketchPlugin_Arc.cpp
74     SketchPlugin_Circle.cpp
75     SketchPlugin_Constraint.cpp
76     SketchPlugin_ConstraintAngle.cpp
77     SketchPlugin_ConstraintCoincidence.cpp
78     SketchPlugin_ConstraintCollinear.cpp
79     SketchPlugin_ConstraintDistance.cpp
80     SketchPlugin_ConstraintDistanceAlongDir.cpp
81     SketchPlugin_ConstraintDistanceHorizontal.cpp
82     SketchPlugin_ConstraintDistanceVertical.cpp
83     SketchPlugin_ConstraintEqual.cpp
84     SketchPlugin_Fillet.cpp
85     SketchPlugin_ConstraintHorizontal.cpp
86     SketchPlugin_ConstraintLength.cpp
87     SketchPlugin_ConstraintMiddle.cpp
88     SketchPlugin_ConstraintMirror.cpp
89     SketchPlugin_ConstraintParallel.cpp
90     SketchPlugin_ConstraintPerpendicular.cpp
91     SketchPlugin_ConstraintRadius.cpp
92     SketchPlugin_ConstraintRigid.cpp
93     SketchPlugin_ConstraintTangent.cpp
94     SketchPlugin_ConstraintVertical.cpp
95     SketchPlugin_Ellipse.cpp
96     SketchPlugin_ExternalValidator.cpp
97     SketchPlugin_Feature.cpp
98     SketchPlugin_IntersectionPoint.cpp
99     SketchPlugin_Line.cpp
100     SketchPlugin_MacroArc.cpp
101     SketchPlugin_MacroCircle.cpp
102     SketchPlugin_MacroEllipse.cpp
103     SketchPlugin_MultiRotation.cpp
104     SketchPlugin_MultiTranslation.cpp
105     SketchPlugin_Plugin.cpp
106     SketchPlugin_Point.cpp
107     SketchPlugin_Projection.cpp
108     SketchPlugin_Sketch.cpp
109     SketchPlugin_SketchEntity.cpp
110     SketchPlugin_Split.cpp
111     SketchPlugin_Tools.cpp
112     SketchPlugin_Trim.cpp
113     SketchPlugin_Validators.cpp
114     SketchPlugin_SketchDrawer.cpp
115 )
116
117 SET(PROJECT_LIBRARIES
118     Config
119     GeomAPI
120     GeomAlgoAPI
121     ModelAPI
122     ModelGeomAlgo
123     SketcherPrs
124     GeomDataAPI
125 )
126
127 SET(XML_RESOURCES
128   plugin-Sketch.xml
129 )
130
131 SET(TEXT_RESOURCES
132         SketchPlugin_msg_en.ts
133 )
134
135 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
136
137 ADD_DEFINITIONS(-DSKETCHPLUGIN_EXPORTS)
138 ADD_LIBRARY(SketchPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
139 TARGET_LINK_LIBRARIES(SketchPlugin ${PROJECT_LIBRARIES})
140
141 INCLUDE_DIRECTORIES(
142   ../Config
143   ../Events
144   ../ModelAPI
145   ../ModelGeomAlgo
146   ../GeomAPI
147   ../GeomAlgoAPI
148   ../GeomDataAPI
149   ../SketcherPrs
150 )
151
152 INSTALL(TARGETS SketchPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
153 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
154 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Sketch)
155 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
156
157 ADD_UNIT_TESTS(
158   Test1061.py
159   Test1577.py
160   Test1578.py
161   Test1673.py
162   Test1779.py
163   Test1924.py
164   Test1963.py
165   Test1966.py
166   Test1967.py
167   Test2034_1.py
168   Test2034_2.py
169   Test2034_3.py
170   Test2062.py
171   Test2095.py
172   Test2115.py
173   Test2119.py
174   Test2134.py
175   Test2157.py
176   Test2157_2.py
177   Test2224.py
178   Test2229.py
179   Test2239.py
180   Test2273.py
181   Test2280.py
182   Test2287.py
183   Test2341.py
184   Test2390.py
185   Test2393.py
186   Test2425.py
187   Test2427.py
188   Test2440.py
189   Test2481.py
190   Test2654.py
191   Test2711.py
192   Test2741.py
193   Test2810.py
194   TestArcBehavior.py
195   TestConstraintAngle.py
196   TestConstraintCoincidence.py
197   TestConstraintCollinear.py
198   TestConstraintDistance.py
199   TestConstraintDistanceBehavior.py
200   TestConstraintDistanceHorizontal.py
201   TestConstraintDistanceVertical.py
202   TestConstraintEqual.py
203   TestConstraintFixed.py
204   TestConstraintHorizontal.py
205   TestConstraintHorizontalValidator.py
206   TestConstraintLength.py
207   TestConstraintMiddlePoint.py
208   TestConstraintParallel.py
209   TestConstraintPerpendicular.py
210   TestConstraintRadius.py
211   TestConstraintRadiusFailure.py
212   TestConstraintTangent.py
213   TestConstraintVertical.py
214   TestCreateArcByCenterStartEnd.py
215   TestCreateArcByTangentEdge.py
216   TestCreateArcByThreePoints.py
217   TestCreateArcChangeType.py
218   TestCreateCircleByCenterAndPassed.py
219   TestCreateCircleByThreePoints.py
220   TestCreateCircleChangeType.py
221   TestDegeneratedGeometry.py
222   TestDistanceDump.py
223   TestDistanceSignedVsUnsigned01.py
224   TestDistanceSignedVsUnsigned02.py
225   TestDistanceSignedVsUnsigned03.py
226   TestDistanceSignedVsUnsigned04.py
227   TestDistanceSignedVsUnsigned05.py
228   TestEdgesOrder.py
229   TestFillet.py
230   TestFilletAfterFolder.py
231   TestFilletInteracting.py
232   TestHighload.py
233   TestIntersectionChangeEdge.py
234   TestIntersectionWithCircle.py
235   TestIntersectionWithLine.py
236   TestIntersectionWithSpline.py
237   TestMirror.py
238   TestMultiRotation.py
239   TestMultiRotation01.py
240   TestMultiRotation02.py
241   TestMultiRotation03.py
242   TestMultiRotation04.py
243   TestMultiRotation05.py
244   TestMultiRotationWithParameter.py
245   TestMultiTranslation.py
246   TestPresentation.py
247   TestProjection.py
248   TestProjectionIntoResult.py
249   TestProjectionUpdate.py
250   TestRectangle.py
251   TestRemoveSketch.py
252   TestSignedDistancePointLine.py
253   TestSignedDistancePointPoint.py
254   TestSketchDrawer.py
255   TestSketchPointLine.py
256   TestSnowflake.py
257   TestSplit.py
258   TestSplitLine.py
259   TestSplitPreview.py
260   TestTrimArc01.py
261   TestTrimArc02.py
262   TestTrimArc03.py
263   TestTrimArc04.py
264   TestTrimArc05.py
265   TestTrimArc06.py
266   TestTrimArc07.py
267   TestTrimArc08.py
268   TestTrimCircle01.py
269   TestTrimCircle02.py
270   TestTrimCircle03.py
271   TestTrimCircle04.py
272   TestTrimCircle05.py
273   TestTrimCircleAndArc01.py
274   TestTrimLine01.py
275   TestTrimLine02.py
276   TestTrimLine03.py
277   TestTrimPreview.py
278 )
279
280 if(${SKETCHER_CHANGE_RADIUS_WHEN_MOVE})
281   ADD_UNIT_TESTS(
282     TestMoveArc.py
283     TestMoveCircle.py
284     TestMoveLine.py
285     TestMovementComplex.py
286     TestMovePoint.py
287   )
288 endif()