Salome HOME
Fix for the issue #2240 : simplify Partition arguments before processing as it is...
[modules/shaper.git] / src / FeaturesPlugin / CMakeLists.txt
1 ## Copyright (C) 2014-2017  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
18 ## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
19 ##
20
21 INCLUDE(Common)
22 INCLUDE(UnitTest)
23
24 SET(PROJECT_HEADERS
25     FeaturesPlugin.h
26     FeaturesPlugin_Plugin.h
27     FeaturesPlugin_Extrusion.h
28     FeaturesPlugin_Recover.h
29     FeaturesPlugin_Revolution.h
30     FeaturesPlugin_Rotation.h
31     FeaturesPlugin_Translation.h
32     FeaturesPlugin_Boolean.h
33     FeaturesPlugin_Intersection.h
34     FeaturesPlugin_Partition.h
35     FeaturesPlugin_Pipe.h
36     FeaturesPlugin_Placement.h
37     FeaturesPlugin_CompositeBoolean.h
38     FeaturesPlugin_CompositeSketch.h
39     FeaturesPlugin_ExtrusionBoolean.h
40     FeaturesPlugin_ExtrusionCut.h
41     FeaturesPlugin_ExtrusionFuse.h
42     FeaturesPlugin_RevolutionBoolean.h
43     FeaturesPlugin_RevolutionCut.h
44     FeaturesPlugin_RevolutionFuse.h
45     FeaturesPlugin_Union.h
46     FeaturesPlugin_ValidatorTransform.h
47     FeaturesPlugin_Validators.h
48     FeaturesPlugin_RemoveSubShapes.h
49     FeaturesPlugin_Tools.h
50     FeaturesPlugin_Symmetry.h
51     FeaturesPlugin_Scale.h
52     FeaturesPlugin_MultiTranslation.h
53 )
54
55 SET(PROJECT_SOURCES
56     FeaturesPlugin_Plugin.cpp
57     FeaturesPlugin_Extrusion.cpp
58     FeaturesPlugin_Recover.cpp
59     FeaturesPlugin_Revolution.cpp
60     FeaturesPlugin_Rotation.cpp
61     FeaturesPlugin_Translation.cpp
62     FeaturesPlugin_Boolean.cpp
63     FeaturesPlugin_Intersection.cpp
64     FeaturesPlugin_Partition.cpp
65     FeaturesPlugin_Pipe.cpp
66     FeaturesPlugin_Placement.cpp
67     FeaturesPlugin_CompositeBoolean.cpp
68     FeaturesPlugin_CompositeSketch.cpp
69     FeaturesPlugin_ExtrusionBoolean.cpp
70     FeaturesPlugin_ExtrusionCut.cpp
71     FeaturesPlugin_ExtrusionFuse.cpp
72     FeaturesPlugin_RevolutionBoolean.cpp
73     FeaturesPlugin_RevolutionCut.cpp
74     FeaturesPlugin_RevolutionFuse.cpp
75     FeaturesPlugin_Union.cpp
76     FeaturesPlugin_ValidatorTransform.cpp
77     FeaturesPlugin_Validators.cpp
78     FeaturesPlugin_RemoveSubShapes.cpp
79     FeaturesPlugin_Tools.cpp
80     FeaturesPlugin_Symmetry.cpp
81     FeaturesPlugin_Scale.cpp
82     FeaturesPlugin_MultiTranslation.cpp
83 )
84
85 SET(XML_RESOURCES
86   plugin-Features.xml
87   extrusion_widget.xml
88   extrusioncut_widget.xml
89   extrusionfuse_widget.xml
90   revolution_widget.xml
91   revolutioncut_widget.xml
92   revolutionfuse_widget.xml
93   rotation_widget.xml
94   translation_widget.xml
95   boolean_widget.xml
96   recover_widget.xml
97   partition_widget.xml
98   placement_widget.xml
99   intersection_widget.xml
100   pipe_widget.xml
101   remove_subshapes_widget.xml
102   union_widget.xml
103   symmetry_widget.xml
104   scale_widget.xml
105   multitranslation_widget.xml
106 )
107
108 SET(TEXT_RESOURCES
109     FeaturesPlugin_msg_en.ts
110     FeaturesPlugin_msg_ru.ts
111 )
112
113 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
114
115
116 INCLUDE_DIRECTORIES(
117   ../ModelAPI
118   ../GeomAPI
119   ../GeomAlgoAPI
120   ../GeomValidators
121   ../Events
122 )
123
124 SET(PROJECT_LIBRARIES
125     Events
126     ModelAPI
127     GeomAPI
128     GeomAlgoAPI
129     GeomValidators
130 )
131
132 ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS)
133 ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
134 TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES})
135
136 INSTALL(TARGETS FeaturesPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
137 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
138 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Features)
139 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
140
141 ADD_UNIT_TESTS(TestExtrusion.py
142                TestExtrusionCut.py
143                TestExtrusionFuse.py
144                TestRevolution.py
145                TestRevolutionCut.py
146                TestRevolutionFuse.py
147                TestCompositeFeaturesOnCompSolids.py
148                TestPartition.py
149                TestPlacement.py
150                TestTranslation.py
151                TestRotation.py
152                TestBoolean.py
153                TestBooleanCompSolids.py
154                TestBooleanSmash.py
155                TestBooleanFill.py
156                TestMultiBoolean.py
157                TestSerialBoolean.py
158                TestIntersection.py
159                TestUnion.py
160                TestRemoveSubShapes.py
161                TestPipe.py
162                TestRecover.py
163                TestRecover1798.py
164                Test1922.py
165                Test1942.py
166                Test1915.py
167                Test2023.py
168                Test2046.py
169                Test2038.py
170                Test2172.py
171                Test2194.py
172                Test2197_1.py
173                Test2197_2.py
174                Test2197_3.py
175                Test2197_4.py
176                Test2215.py
177                Test2222.py
178                Test2233.py
179                Test2231.py
180                Test2240.py
181 )