]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchPlugin/CMakeLists.txt
Salome HOME
Revert change for MacroArc attribute names
[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_ConstraintEqual.h
17     SketchPlugin_Fillet.h
18     SketchPlugin_ConstraintHorizontal.h
19     SketchPlugin_ConstraintLength.h
20     SketchPlugin_ConstraintMiddle.h
21     SketchPlugin_ConstraintMirror.h
22     SketchPlugin_ConstraintParallel.h
23     SketchPlugin_ConstraintPerpendicular.h
24     SketchPlugin_ConstraintRadius.h
25     SketchPlugin_ConstraintRigid.h
26     SketchPlugin_ConstraintSplit.h
27     SketchPlugin_ConstraintTangent.h
28     SketchPlugin_ConstraintVertical.h
29     SketchPlugin_ExternalValidator.h
30     SketchPlugin_Feature.h
31     SketchPlugin_IntersectionPoint.h
32     SketchPlugin_Line.h
33     SketchPlugin_MacroArc.h
34     SketchPlugin_MacroCircle.h
35     SketchPlugin_MultiRotation.h
36     SketchPlugin_MultiTranslation.h
37     SketchPlugin_Plugin.h
38     SketchPlugin_Point.h
39     SketchPlugin_Projection.h
40     SketchPlugin_Sketch.h
41     SketchPlugin_SketchEntity.h
42     SketchPlugin_Tools.h
43     SketchPlugin_Trim.h
44     SketchPlugin_Validators.h
45 )
46
47 SET(PROJECT_SOURCES
48     SketchPlugin_Arc.cpp
49     SketchPlugin_Circle.cpp
50     SketchPlugin_Constraint.cpp
51     SketchPlugin_ConstraintAngle.cpp
52     SketchPlugin_ConstraintBase.cpp
53     SketchPlugin_ConstraintCoincidence.cpp
54     SketchPlugin_ConstraintCollinear.cpp
55     SketchPlugin_ConstraintDistance.cpp
56     SketchPlugin_ConstraintEqual.cpp
57     SketchPlugin_Fillet.cpp
58     SketchPlugin_ConstraintHorizontal.cpp
59     SketchPlugin_ConstraintLength.cpp
60     SketchPlugin_ConstraintMiddle.cpp
61     SketchPlugin_ConstraintMirror.cpp
62     SketchPlugin_ConstraintParallel.cpp
63     SketchPlugin_ConstraintPerpendicular.cpp
64     SketchPlugin_ConstraintRadius.cpp
65     SketchPlugin_ConstraintRigid.cpp
66     SketchPlugin_ConstraintSplit.cpp
67     SketchPlugin_ConstraintTangent.cpp
68     SketchPlugin_ConstraintVertical.cpp
69     SketchPlugin_ExternalValidator.cpp
70     SketchPlugin_Feature.cpp
71     SketchPlugin_IntersectionPoint.cpp
72     SketchPlugin_Line.cpp
73     SketchPlugin_MacroArc.cpp
74     SketchPlugin_MacroCircle.cpp
75     SketchPlugin_MultiRotation.cpp
76     SketchPlugin_MultiTranslation.cpp
77     SketchPlugin_Plugin.cpp
78     SketchPlugin_Point.cpp
79     SketchPlugin_Projection.cpp
80     SketchPlugin_Sketch.cpp
81     SketchPlugin_SketchEntity.cpp
82     SketchPlugin_Tools.cpp
83     SketchPlugin_Trim.cpp
84     SketchPlugin_Validators.cpp
85 )
86
87 SET(PROJECT_LIBRARIES
88     Config
89     GeomAPI
90     GeomAlgoAPI
91     ModelAPI
92     ModelGeomAlgo
93     SketcherPrs
94     GeomDataAPI
95 )
96
97 SET(XML_RESOURCES
98   plugin-Sketch.xml
99 )
100
101 SET(TEXT_RESOURCES
102         SketchPlugin_msg_en.ts
103 )
104
105 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
106
107 ADD_DEFINITIONS(-DSKETCHPLUGIN_EXPORTS)
108 ADD_LIBRARY(SketchPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
109 TARGET_LINK_LIBRARIES(SketchPlugin ${PROJECT_LIBRARIES})
110
111 INCLUDE_DIRECTORIES(
112   ../Config
113   ../Events
114   ../ModelAPI
115   ../ModelGeomAlgo
116   ../GeomAPI
117   ../GeomAlgoAPI
118   ../GeomDataAPI
119   ../SketcherPrs
120 )
121
122 INSTALL(TARGETS SketchPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
123 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
124 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Sketch)
125 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
126
127 ADD_UNIT_TESTS(TestSketchPointLine.py
128                TestCreateArc.py
129                TestCreateCircleByCenterAndPassed.py
130                TestCreateCircleByThreePoints.py
131                TestCreateCircleChangeType.py
132                TestConstraintCoincidence.py
133                TestConstraintCollinear.py
134                TestConstraintLength.py
135                TestConstraintDistance.py
136                TestConstraintParallel.py
137                TestConstraintPerpendicular.py
138                TestConstraintRadius.py
139                TestConstraintFixed.py
140                TestConstraintHorizontal.py
141                TestConstraintVertical.py
142                TestConstraintEqual.py
143                TestConstraintTangent.py
144                TestConstraintMirror.py
145                TestConstraintAngle.py
146                TestConstraintMiddlePoint.py
147                TestMultiRotation.py
148                TestMultiTranslation.py
149                TestFillet.py
150                TestFilletInteracting.py
151                TestRectangle.py
152                TestProjection.py
153                TestSplit.py
154                TestHighload.py
155                TestSnowflake.py
156                TestArcBehavior.py
157                TestRemoveSketch.py
158                Test1061.py
159                Test1673.py
160                Test1924.py
161                Test1966.py
162                Test1967.py
163                TestTrimCircle.py)