Salome HOME
Merge remote-tracking branch 'remotes/origin/EDF_2020_Lot2'
[modules/shaper.git] / src / FiltersPlugin / CMakeLists.txt
1 ## Copyright (C) 2014-2020  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 email : webmaster.salome@opencascade.com
18 ##
19
20 INCLUDE(Common)
21 INCLUDE(UnitTest)
22
23 SET(PROJECT_HEADERS
24     FiltersPlugin.h
25     FiltersPlugin_Plugin.h
26     FiltersPlugin_Selection.h
27     FiltersPlugin_HorizontalFace.h
28     FiltersPlugin_VerticalFace.h
29     FiltersPlugin_BelongsTo.h
30     FiltersPlugin_OnPlane.h
31     FiltersPlugin_OnLine.h
32     FiltersPlugin_OnGeometry.h
33     FiltersPlugin_OnPlaneSide.h
34     FiltersPlugin_OppositeToEdge.h
35     FiltersPlugin_RelativeToSolid.h
36     FiltersPlugin_ExternalFaces.h
37     FiltersPlugin_Validators.h
38 )
39
40 SET(PROJECT_SOURCES
41     FiltersPlugin_Plugin.cpp
42     FiltersPlugin_Selection.cpp
43     FiltersPlugin_HorizontalFace.cpp
44     FiltersPlugin_VerticalFace.cpp
45     FiltersPlugin_BelongsTo.cpp
46     FiltersPlugin_OnPlane.cpp
47     FiltersPlugin_OnLine.cpp
48     FiltersPlugin_OnGeometry.cpp
49     FiltersPlugin_OnPlaneSide.cpp
50     FiltersPlugin_OppositeToEdge.cpp
51     FiltersPlugin_RelativeToSolid.cpp
52     FiltersPlugin_ExternalFaces.cpp
53     FiltersPlugin_Validators.cpp
54 )
55
56 SET(PROJECT_LIBRARIES
57     ModelAPI
58     Events
59     Config
60     GeomAPI
61     GeomAlgoAPI
62     GeomValidators
63 )
64
65 SET(PROJECT_PYFILES
66     FiltersPlugin_TopoConnectedFaces.py
67 )
68
69 SET(XML_RESOURCES
70   plugin-Filters.xml
71   filter-BelongsTo.xml
72   filter-OnGeometry.xml
73   filter-OnLine.xml
74   filter-OnPlane.xml
75   filter-OnPlaneSide.xml
76   filter-OppositeToEdge.xml
77   filter-RelativeToSolid.xml
78   filter-TopoConnectedFaces.xml
79 )
80
81 SET(TEXT_RESOURCES
82     FiltersPlugin_msg_en.ts
83     FiltersPlugin_msg_fr.ts
84 )
85
86 SOURCE_GROUP ("XML Files" FILES ${XML_RESOURCES})
87 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
88
89 ADD_DEFINITIONS(-DFILTERS_EXPORTS ${OpenCASCADE_DEFINITIONS})
90 ADD_LIBRARY(FiltersPlugin SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
91 TARGET_LINK_LIBRARIES(FiltersPlugin ${PROJECT_LIBRARIES})
92
93 INCLUDE_DIRECTORIES(
94   ${OpenCASCADE_INCLUDE_DIR}
95   ${PROJECT_SOURCE_DIR}/src/ModelAPI
96   ${PROJECT_SOURCE_DIR}/src/Config
97   ${PROJECT_SOURCE_DIR}/src/Events
98   ${PROJECT_SOURCE_DIR}/src/GeomAPI
99   ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
100   ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
101   ${PROJECT_SOURCE_DIR}/src/GeomValidators
102   ${PROJECT_SOURCE_DIR}/src/CollectionPlugin
103 )
104
105 INSTALL(TARGETS FiltersPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
106 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
107 INSTALL(FILES ${PROJECT_PYFILES} DESTINATION ${SHAPER_INSTALL_ADDONS})
108 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
109
110
111 ADD_UNIT_TESTS(
112   TestFilters.py
113   TestFilters_Mixed1.py
114   TestFilters_Mixed2.py
115   TestFilters_Supported.py
116   TestFilters_Validator.py
117   TestFilters_Xml.py
118   TestFilters_FilterName.py
119   TestFilters_IsReversed.py
120   TestFilters_Remove.py
121   TestFilter_BelongsTo.py
122   TestFilter_BelongsTo_Exclude.py
123   TestFilter_OnPlane.py
124   TestFilter_OnPlane_Exclude.py
125   TestFilter_OnPlane_Multi.py
126   TestFilter_OnLine.py
127   TestFilter_OnLine_Exclude.py
128   TestFilter_OnLine_Multi.py
129   TestFilter_OnGeometry_Edge1.py
130   TestFilter_OnGeometry_Edge2.py
131   TestFilter_OnGeometry_Face1.py
132   TestFilter_OnGeometry_Face2.py
133   TestFilter_OnGeometry_Face3.py
134   TestFilter_OnGeometry_Face4.py
135   TestFilter_OnGeometry_Exclude_Edge1.py
136   TestFilter_OnGeometry_Exclude_Edge2.py
137   TestFilter_OnGeometry_Exclude_Face1.py
138   TestFilter_OnGeometry_Exclude_Face2.py
139   TestFilter_OnGeometry_Exclude_Face3.py
140   TestFilter_OnGeometry_Exclude_Face4.py
141   TestFilter_OnPlaneSide_Face.py
142   TestFilter_OnPlaneSide_Plane.py
143   TestFilter_OnPlaneSide_Exclude_Face.py
144   TestFilter_OnPlaneSide_Exclude_Plane.py
145   TestFilter_OnPlaneSide_Multi.py
146   TestFilter_OppositeToEdge.py
147   TestFilter_OppositeToEdge_Exclude.py
148   TestFilter_RelativeToSolid_In.py
149   TestFilter_RelativeToSolid_Out.py
150   TestFilter_RelativeToSolid_On.py
151   TestFilter_RelativeToSolid_NotOn.py
152   TestFilter_RelativeToSolid_InAndOn.py
153   TestFilter_RelativeToSolid_OutAndOn.py
154   TestFilter_RelativeToSolid_Exclude_In.py
155   TestFilter_RelativeToSolid_Exclude_Out.py
156   TestFilter_RelativeToSolid_Exclude_On.py
157   TestFilter_RelativeToSolid_Exclude_NotOn.py
158   TestFilter_RelativeToSolid_Exclude_InAndOn.py
159   TestFilter_RelativeToSolid_Exclude_OutAndOn.py
160   TestFilter_RelativeToSolid_Multi.py
161   TestFilter_ExternalFaces1.py
162   TestFilter_ExternalFaces2.py
163   TestFilter_ExternalFaces_Exclude1.py
164   TestFilter_ExternalFaces_Exclude2.py
165   TestFilter_HorizontalFaces.py
166   TestFilter_HorizontalFaces_Exclude.py
167   TestFilter_VerticalFaces.py
168   TestFilter_VerticalFaces_Exclude.py
169   TestFilter_TopoConnectedFaces_Vertex1.py
170   TestFilter_TopoConnectedFaces_Vertex2.py
171   TestFilter_TopoConnectedFaces_Vertex3.py
172   TestFilter_TopoConnectedFaces_Prop_Vertex1.py
173   TestFilter_TopoConnectedFaces_Prop_Vertex2.py
174   TestFilter_TopoConnectedFaces_Prop_Vertex3.py
175   TestFilter_TopoConnectedFaces_Edge1.py
176   TestFilter_TopoConnectedFaces_Edge2.py
177   TestFilter_TopoConnectedFaces_Edge3.py
178   TestFilter_TopoConnectedFaces_Prop_Edge1.py
179   TestFilter_TopoConnectedFaces_Prop_Edge2.py
180   TestFilter_TopoConnectedFaces_Prop_Edge3.py
181   TestFilter_TopoConnectedFaces_Face1.py
182   TestFilter_TopoConnectedFaces_Face2.py
183   TestFilter_TopoConnectedFaces_Face3.py
184   TestFilter_TopoConnectedFaces_Prop_Face1.py
185   TestFilter_TopoConnectedFaces_Prop_Face2.py
186   TestFilter_TopoConnectedFaces_Prop_Face3.py
187   TestFilter_TopoConnectedFaces_Exclude_Vertex1.py
188   TestFilter_TopoConnectedFaces_Exclude_Vertex2.py
189   TestFilter_TopoConnectedFaces_Exclude_Vertex3.py
190   TestFilter_TopoConnectedFaces_Prop_Exclude_Vertex1.py
191   TestFilter_TopoConnectedFaces_Prop_Exclude_Vertex2.py
192   TestFilter_TopoConnectedFaces_Prop_Exclude_Vertex3.py
193   TestFilter_TopoConnectedFaces_Exclude_Edge1.py
194   TestFilter_TopoConnectedFaces_Exclude_Edge2.py
195   TestFilter_TopoConnectedFaces_Exclude_Edge3.py
196   TestFilter_TopoConnectedFaces_Prop_Exclude_Edge1.py
197   TestFilter_TopoConnectedFaces_Prop_Exclude_Edge2.py
198   TestFilter_TopoConnectedFaces_Prop_Exclude_Edge3.py
199   TestFilter_TopoConnectedFaces_Exclude_Face1.py
200   TestFilter_TopoConnectedFaces_Exclude_Face2.py
201   TestFilter_TopoConnectedFaces_Exclude_Face3.py
202   TestFilter_TopoConnectedFaces_Prop_Exclude_Face1.py
203   TestFilter_TopoConnectedFaces_Prop_Exclude_Face2.py
204   TestFilter_TopoConnectedFaces_Prop_Exclude_Face3.py
205   TestFilter_TopoConnectedFaces_Multi.py
206   Test2946.py
207   Test2951.py
208   Test3241.py
209   Test17924.py
210   Test17962.py
211   Test19190.py
212 )