]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchPlugin/CMakeLists.txt
Salome HOME
Fixed validators for Boolean and Intersection
[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     SketchPlugin_Projection.h
41 )
42
43 SET(PROJECT_SOURCES
44     SketchPlugin_Feature.cpp
45     SketchPlugin_Plugin.cpp
46     SketchPlugin_Sketch.cpp
47     SketchPlugin_SketchEntity.cpp
48     SketchPlugin_Line.cpp
49     SketchPlugin_Point.cpp
50     SketchPlugin_IntersectionPoint.cpp
51     SketchPlugin_Circle.cpp
52     SketchPlugin_Arc.cpp
53     SketchPlugin_Constraint.cpp
54     SketchPlugin_ConstraintBase.cpp
55     SketchPlugin_ConstraintCoincidence.cpp
56     SketchPlugin_ConstraintCollinear.cpp
57     SketchPlugin_ConstraintDistance.cpp
58     SketchPlugin_ConstraintLength.cpp
59     SketchPlugin_ConstraintMiddle.cpp
60     SketchPlugin_ConstraintParallel.cpp
61     SketchPlugin_ConstraintPerpendicular.cpp
62     SketchPlugin_ConstraintRadius.cpp
63     SketchPlugin_ConstraintRigid.cpp
64     SketchPlugin_ConstraintHorizontal.cpp
65     SketchPlugin_ConstraintVertical.cpp
66     SketchPlugin_ConstraintEqual.cpp
67     SketchPlugin_ConstraintTangent.cpp
68     SketchPlugin_ConstraintMirror.cpp
69     SketchPlugin_ConstraintFillet.cpp
70     SketchPlugin_ConstraintAngle.cpp
71     SketchPlugin_MultiRotation.cpp
72     SketchPlugin_MultiTranslation.cpp
73     SketchPlugin_ExternalValidator.cpp
74     SketchPlugin_Validators.cpp
75     SketchPlugin_Tools.cpp
76     SketchPlugin_Projection.cpp
77 )
78
79 SET(PROJECT_LIBRARIES
80     Config
81     GeomAPI
82     GeomAlgoAPI
83     ModelAPI
84     SketcherPrs
85     GeomDataAPI
86 )
87
88 SET(XML_RESOURCES
89   plugin-Sketch.xml
90 )
91
92 SET(TEXT_RESOURCES
93         SketchPlugin_msg_en.ts
94 )
95
96 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
97
98 ADD_DEFINITIONS(-DSKETCHPLUGIN_EXPORTS)
99 ADD_LIBRARY(SketchPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
100 TARGET_LINK_LIBRARIES(SketchPlugin ${PROJECT_LIBRARIES})
101
102 INCLUDE_DIRECTORIES(
103   ../Config
104   ../Events
105   ../ModelAPI
106   ../GeomAPI
107   ../GeomAlgoAPI
108   ../GeomDataAPI
109   ../SketcherPrs
110 )
111
112 INSTALL(TARGETS SketchPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
113 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
114 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Sketch)
115 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
116
117 ADD_UNIT_TESTS(TestSketchPointLine.py
118                TestSketchArcCircle.py
119                TestConstraintCoincidence.py
120                # TestConstraintCollinear.py
121                TestConstraintLength.py
122                TestConstraintDistance.py
123                TestConstraintParallel.py
124                TestConstraintPerpendicular.py
125                TestConstraintRadius.py
126                TestConstraintRigid.py
127                TestConstraintHorizontal.py
128                TestConstraintVertical.py
129                TestConstraintEqual.py
130                TestConstraintTangent.py
131                TestConstraintMirror.py
132                TestConstraintAngle.py
133                TestConstraintMiddlePoint.py
134                TestMultiRotation.py
135                TestMultiTranslation.py
136                TestFillet.py
137                TestRectangle.py
138                TestProjection.py
139                TestHighload.py
140                TestSnowflake.py)