]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchPlugin/CMakeLists.txt
Salome HOME
Simplification and refactoring of unit tests for SketchPlugin
[modules/shaper.git] / src / SketchPlugin / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 INCLUDE(Common)
4 INCLUDE(UnitTest)
5
6 SET(PROJECT_HEADERS
7     SketchPlugin.h
8     SketchPlugin_Arc.h
9     SketchPlugin_Circle.h
10     SketchPlugin_Constraint.h
11     SketchPlugin_ConstraintAngle.h
12     SketchPlugin_ConstraintBase.h
13     SketchPlugin_ConstraintCoincidence.h
14     SketchPlugin_ConstraintCollinear.h
15     SketchPlugin_ConstraintDistance.h
16     SketchPlugin_ConstraintDistanceHorizontal.h
17     SketchPlugin_ConstraintDistanceVertical.h
18     SketchPlugin_ConstraintEqual.h
19     SketchPlugin_ConstraintHorizontal.h
20     SketchPlugin_ConstraintLength.h
21     SketchPlugin_ConstraintMiddle.h
22     SketchPlugin_ConstraintMirror.h
23     SketchPlugin_ConstraintParallel.h
24     SketchPlugin_ConstraintPerpendicular.h
25     SketchPlugin_ConstraintRadius.h
26     SketchPlugin_ConstraintRigid.h
27     SketchPlugin_ConstraintSplit.h
28     SketchPlugin_ConstraintTangent.h
29     SketchPlugin_ConstraintVertical.h
30     SketchPlugin_Ellipse.h
31     SketchPlugin_ExternalValidator.h
32     SketchPlugin_Feature.h
33     SketchPlugin_Fillet.h
34     SketchPlugin_IntersectionPoint.h
35     SketchPlugin_Line.h
36     SketchPlugin_MacroArc.h
37     SketchPlugin_MacroArcReentrantMessage.h
38     SketchPlugin_MacroCircle.h
39     SketchPlugin_MacroEllipse.h
40     SketchPlugin_MultiRotation.h
41     SketchPlugin_MultiTranslation.h
42     SketchPlugin_Plugin.h
43     SketchPlugin_Point.h
44     SketchPlugin_Projection.h
45     SketchPlugin_Sketch.h
46     SketchPlugin_SketchEntity.h
47     SketchPlugin_Tools.h
48     SketchPlugin_Trim.h
49     SketchPlugin_Validators.h
50 )
51
52 SET(PROJECT_SOURCES
53     SketchPlugin_Arc.cpp
54     SketchPlugin_Circle.cpp
55     SketchPlugin_Constraint.cpp
56     SketchPlugin_ConstraintAngle.cpp
57     SketchPlugin_ConstraintBase.cpp
58     SketchPlugin_ConstraintCoincidence.cpp
59     SketchPlugin_ConstraintCollinear.cpp
60     SketchPlugin_ConstraintDistance.cpp
61     SketchPlugin_ConstraintDistanceHorizontal.cpp
62     SketchPlugin_ConstraintDistanceVertical.cpp
63     SketchPlugin_ConstraintEqual.cpp
64     SketchPlugin_ConstraintHorizontal.cpp
65     SketchPlugin_ConstraintLength.cpp
66     SketchPlugin_ConstraintMiddle.cpp
67     SketchPlugin_ConstraintMirror.cpp
68     SketchPlugin_ConstraintParallel.cpp
69     SketchPlugin_ConstraintPerpendicular.cpp
70     SketchPlugin_ConstraintRadius.cpp
71     SketchPlugin_ConstraintRigid.cpp
72     SketchPlugin_ConstraintSplit.cpp
73     SketchPlugin_ConstraintTangent.cpp
74     SketchPlugin_ConstraintVertical.cpp
75     SketchPlugin_Ellipse.cpp
76     SketchPlugin_ExternalValidator.cpp
77     SketchPlugin_Feature.cpp
78     SketchPlugin_Fillet.cpp
79     SketchPlugin_IntersectionPoint.cpp
80     SketchPlugin_Line.cpp
81     SketchPlugin_MacroArc.cpp
82     SketchPlugin_MacroCircle.cpp
83     SketchPlugin_MacroEllipse.cpp
84     SketchPlugin_MultiRotation.cpp
85     SketchPlugin_MultiTranslation.cpp
86     SketchPlugin_Plugin.cpp
87     SketchPlugin_Point.cpp
88     SketchPlugin_Projection.cpp
89     SketchPlugin_Sketch.cpp
90     SketchPlugin_SketchEntity.cpp
91     SketchPlugin_Tools.cpp
92     SketchPlugin_Trim.cpp
93     SketchPlugin_Validators.cpp
94 )
95
96 SET(PROJECT_LIBRARIES
97     Config
98     GeomAPI
99     GeomAlgoAPI
100     ModelAPI
101     ModelGeomAlgo
102     SketcherPrs
103     GeomDataAPI
104 )
105
106 SET(XML_RESOURCES
107   plugin-Sketch.xml
108 )
109
110 SET(TEXT_RESOURCES
111         SketchPlugin_msg_en.ts
112 )
113
114 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
115
116 ADD_DEFINITIONS(-DSKETCHPLUGIN_EXPORTS)
117 ADD_LIBRARY(SketchPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
118 TARGET_LINK_LIBRARIES(SketchPlugin ${PROJECT_LIBRARIES})
119
120 INCLUDE_DIRECTORIES(
121   ../Config
122   ../Events
123   ../ModelAPI
124   ../ModelGeomAlgo
125   ../GeomAPI
126   ../GeomAlgoAPI
127   ../GeomDataAPI
128   ../SketcherPrs
129 )
130
131 INSTALL(TARGETS SketchPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
132 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
133 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Sketch)
134 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
135
136 ADD_UNIT_TESTS(TestSketchPointLine.py
137                TestCreateArcByCenterStartEnd.py
138                TestCreateArcByThreePoints.py
139                TestCreateArcByTangentEdge.py
140                TestCreateArcChangeType.py
141                TestCreateCircleByCenterAndPassed.py
142                TestCreateCircleByThreePoints.py
143                TestCreateCircleChangeType.py
144                TestConstraintCoincidence.py
145                TestConstraintCollinear.py
146                TestConstraintLength.py
147                TestConstraintDistance.py
148                TestConstraintDistanceHorizontal.py
149                TestConstraintDistanceVertical.py
150                TestConstraintDistanceBehavior.py
151                TestConstraintParallel.py
152                TestConstraintPerpendicular.py
153                TestConstraintRadius.py
154                TestConstraintFixed.py
155                TestConstraintHorizontal.py
156                TestConstraintHorizontalValidator.py
157                TestConstraintVertical.py
158                TestConstraintEqual.py
159                TestConstraintTangent.py
160                TestConstraintAngle.py
161                TestConstraintMiddlePoint.py
162                TestMirror.py
163                TestMultiRotation.py
164                TestMultiTranslation.py
165                TestFillet.py
166                TestFilletInteracting.py
167                TestRectangle.py
168                TestProjection.py
169                TestSplit.py
170                TestHighload.py
171                TestSnowflake.py
172                TestArcBehavior.py
173                TestRemoveSketch.py
174                Test1061.py
175                Test1673.py
176                Test1924.py
177                Test1966.py
178                Test1967.py
179                Test2095.py
180                Test2115.py
181                TestTrimArc01.py
182                TestTrimArc02.py
183                TestTrimArc03.py
184                TestTrimArc04.py
185                TestTrimArc05.py
186                TestTrimArc06.py
187                TestTrimArc07.py
188                TestTrimCircle01.py
189                TestTrimCircle02.py
190                TestTrimCircle03.py
191                TestTrimCircle04.py
192                TestTrimCircle05.py
193                TestTrimCircleAndArc01.py
194                TestTrimLine01.py
195                TestTrimLine02.py)