Salome HOME
165ad0f4262b8d5f616a1bdb262a646233f286f5
[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_Feature.h
9     SketchPlugin_Plugin.h
10     SketchPlugin_Sketch.h
11     SketchPlugin_SketchEntity.h
12     SketchPlugin_Line.h
13     SketchPlugin_Point.h
14     SketchPlugin_IntersectionPoint.h
15     SketchPlugin_Circle.h
16     SketchPlugin_Arc.h
17     SketchPlugin_Constraint.h
18     SketchPlugin_ConstraintBase.h
19     SketchPlugin_ConstraintCoincidence.h
20     SketchPlugin_ConstraintCollinear.h
21     SketchPlugin_ConstraintDistance.h
22     SketchPlugin_ConstraintLength.h
23     SketchPlugin_ConstraintMiddle.h
24     SketchPlugin_ConstraintParallel.h
25     SketchPlugin_ConstraintPerpendicular.h
26     SketchPlugin_ConstraintRadius.h
27     SketchPlugin_ConstraintRigid.h
28     SketchPlugin_ConstraintHorizontal.h
29     SketchPlugin_ConstraintVertical.h
30     SketchPlugin_ConstraintEqual.h
31     SketchPlugin_ConstraintTangent.h
32     SketchPlugin_ConstraintMirror.h
33     SketchPlugin_ConstraintFillet.h
34     SketchPlugin_ConstraintAngle.h
35     SketchPlugin_MultiRotation.h
36     SketchPlugin_MultiTranslation.h
37     SketchPlugin_ExternalValidator.h
38     SketchPlugin_Validators.h
39     SketchPlugin_Tools.h
40 )
41
42 SET(PROJECT_SOURCES
43     SketchPlugin_Feature.cpp
44     SketchPlugin_Plugin.cpp
45     SketchPlugin_Sketch.cpp
46     SketchPlugin_SketchEntity.cpp
47     SketchPlugin_Line.cpp
48     SketchPlugin_Point.cpp
49     SketchPlugin_IntersectionPoint.cpp
50     SketchPlugin_Circle.cpp
51     SketchPlugin_Arc.cpp
52     SketchPlugin_Constraint.cpp
53     SketchPlugin_ConstraintBase.cpp
54     SketchPlugin_ConstraintCoincidence.cpp
55     SketchPlugin_ConstraintCollinear.cpp
56     SketchPlugin_ConstraintDistance.cpp
57     SketchPlugin_ConstraintLength.cpp
58     SketchPlugin_ConstraintMiddle.cpp
59     SketchPlugin_ConstraintParallel.cpp
60     SketchPlugin_ConstraintPerpendicular.cpp
61     SketchPlugin_ConstraintRadius.cpp
62     SketchPlugin_ConstraintRigid.cpp
63     SketchPlugin_ConstraintHorizontal.cpp
64     SketchPlugin_ConstraintVertical.cpp
65     SketchPlugin_ConstraintEqual.cpp
66     SketchPlugin_ConstraintTangent.cpp
67     SketchPlugin_ConstraintMirror.cpp
68     SketchPlugin_ConstraintFillet.cpp
69     SketchPlugin_ConstraintAngle.cpp
70     SketchPlugin_MultiRotation.cpp
71     SketchPlugin_MultiTranslation.cpp
72     SketchPlugin_ExternalValidator.cpp
73     SketchPlugin_Validators.cpp
74     SketchPlugin_Tools.cpp
75 )
76
77 SET(PROJECT_LIBRARIES
78     Config
79     GeomAPI
80     GeomAlgoAPI
81     ModelAPI
82     SketcherPrs
83     GeomDataAPI
84 )
85
86 SET(XML_RESOURCES
87   plugin-Sketch.xml
88 )
89
90 ADD_DEFINITIONS(-DSKETCHPLUGIN_EXPORTS)
91 ADD_LIBRARY(SketchPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
92 TARGET_LINK_LIBRARIES(SketchPlugin ${PROJECT_LIBRARIES})
93
94 INCLUDE_DIRECTORIES(
95   ../Config
96   ../Events
97   ../ModelAPI
98   ../GeomAPI
99   ../GeomAlgoAPI
100   ../GeomDataAPI
101   ../SketcherPrs
102 )
103
104 SET(ICON_RESOURCES
105   icons/parallel.png
106 )
107
108 INSTALL(TARGETS SketchPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
109 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
110 INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
111
112 ADD_UNIT_TESTS(TestSketchPointLine.py
113                TestSketchArcCircle.py
114                TestConstraintConcidence.py
115                # TestConstraintCollinear.py
116                TestConstraintLength.py
117                TestConstraintDistance.py
118                TestConstraintParallel.py
119                TestConstraintPerpendicular.py
120                TestConstraintRadius.py
121                TestConstraintRigid.py
122                TestConstraintHorizontal.py
123                TestConstraintVertical.py
124                TestConstraintEqual.py
125                TestConstraintTangent.py
126                TestConstraintMirror.py
127                #TestConstraintAngle.py
128                TestConstraintMiddlePoint.py
129                TestMultiRotation.py
130                TestMultiTranslation.py
131                TestFillet.py
132                TestRectangle.py
133                TestHighload.py
134                TestSnowflake.py)