]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/CMakeLists.txt
Salome HOME
Issue #2052: Modification of parameters don't work (sketch, extrusion)
[modules/shaper.git] / src / FeaturesPlugin / 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     FeaturesPlugin.h
8     FeaturesPlugin_Plugin.h
9     FeaturesPlugin_Extrusion.h
10     FeaturesPlugin_Recover.h
11     FeaturesPlugin_Revolution.h
12     FeaturesPlugin_Rotation.h
13     FeaturesPlugin_Translation.h
14     FeaturesPlugin_Boolean.h
15     FeaturesPlugin_Intersection.h
16     FeaturesPlugin_Partition.h
17     FeaturesPlugin_Pipe.h
18     FeaturesPlugin_Placement.h
19     FeaturesPlugin_CompositeBoolean.h
20     FeaturesPlugin_CompositeSketch.h
21     FeaturesPlugin_ExtrusionBoolean.h
22     FeaturesPlugin_ExtrusionCut.h
23     FeaturesPlugin_ExtrusionFuse.h
24     FeaturesPlugin_RevolutionBoolean.h
25     FeaturesPlugin_RevolutionCut.h
26     FeaturesPlugin_RevolutionFuse.h
27     FeaturesPlugin_Union.h
28     FeaturesPlugin_ValidatorTransform.h
29     FeaturesPlugin_Validators.h
30     FeaturesPlugin_RemoveSubShapes.h
31     FeaturesPlugin_Tools.h
32     FeaturesPlugin_Symmetry.h
33     FeaturesPlugin_Scale.h
34     FeaturesPlugin_MultiTranslation.h
35 )
36
37 SET(PROJECT_SOURCES
38     FeaturesPlugin_Plugin.cpp
39     FeaturesPlugin_Extrusion.cpp
40     FeaturesPlugin_Recover.cpp
41     FeaturesPlugin_Revolution.cpp
42     FeaturesPlugin_Rotation.cpp
43     FeaturesPlugin_Translation.cpp
44     FeaturesPlugin_Boolean.cpp
45     FeaturesPlugin_Intersection.cpp
46     FeaturesPlugin_Partition.cpp
47     FeaturesPlugin_Pipe.cpp
48     FeaturesPlugin_Placement.cpp
49     FeaturesPlugin_CompositeBoolean.cpp
50     FeaturesPlugin_CompositeSketch.cpp
51     FeaturesPlugin_ExtrusionBoolean.cpp
52     FeaturesPlugin_ExtrusionCut.cpp
53     FeaturesPlugin_ExtrusionFuse.cpp
54     FeaturesPlugin_RevolutionBoolean.cpp
55     FeaturesPlugin_RevolutionCut.cpp
56     FeaturesPlugin_RevolutionFuse.cpp
57     FeaturesPlugin_Union.cpp
58     FeaturesPlugin_ValidatorTransform.cpp
59     FeaturesPlugin_Validators.cpp
60     FeaturesPlugin_RemoveSubShapes.cpp
61     FeaturesPlugin_Tools.cpp
62     FeaturesPlugin_Symmetry.cpp
63     FeaturesPlugin_Scale.cpp
64     FeaturesPlugin_MultiTranslation.cpp
65 )
66
67 SET(XML_RESOURCES
68   plugin-Features.xml
69   extrusion_widget.xml
70   extrusioncut_widget.xml
71   extrusionfuse_widget.xml
72   revolution_widget.xml
73   revolutioncut_widget.xml
74   revolutionfuse_widget.xml
75   rotation_widget.xml
76   translation_widget.xml
77   boolean_widget.xml
78   recover_widget.xml
79   partition_widget.xml
80   placement_widget.xml
81   intersection_widget.xml
82   pipe_widget.xml
83   remove_subshapes_widget.xml
84   union_widget.xml
85   symmetry_widget.xml
86   scale_widget.xml
87   multitranslation_widget.xml
88 )
89
90 SET(TEXT_RESOURCES
91     FeaturesPlugin_msg_en.ts
92     FeaturesPlugin_msg_ru.ts
93 )
94
95 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
96
97
98 INCLUDE_DIRECTORIES(
99   ../ModelAPI
100   ../GeomAPI
101   ../GeomAlgoAPI
102   ../GeomValidators
103   ../Events
104 )
105
106 SET(PROJECT_LIBRARIES
107     Events
108     ModelAPI
109     GeomAPI
110     GeomAlgoAPI
111     GeomValidators
112 )
113
114 ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS)
115 ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
116 TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES})
117
118 INSTALL(TARGETS FeaturesPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
119 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
120 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Features)
121 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
122
123 ADD_UNIT_TESTS(TestExtrusion.py
124                TestExtrusionCut.py
125                TestExtrusionFuse.py
126                TestRevolution.py
127                TestRevolutionCut.py
128                TestRevolutionFuse.py
129                TestCompositeFeaturesOnCompSolids.py
130                TestPartition.py
131                TestPlacement.py
132                TestTranslation.py
133                TestRotation.py
134                TestBoolean.py
135                TestBooleanCompSolids.py
136                TestBooleanSmash.py
137                TestBooleanFill.py
138                TestMultiBoolean.py
139                TestSerialBoolean.py
140                TestIntersection.py
141                TestUnion.py
142                TestRemoveSubShapes.py
143                TestPipe.py
144                TestRecover.py
145                TestRecover1798.py
146                Test1922.py
147                Test1942.py
148                Test1915.py
149                Test2023.py
150                Test2046.py
151                Test2038.py
152 )