]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/CMakeLists.txt
Salome HOME
42e4c363b892337214a612e463621209fbe8c003
[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 )
34
35 SET(PROJECT_SOURCES
36     FeaturesPlugin_Plugin.cpp
37     FeaturesPlugin_Extrusion.cpp
38     FeaturesPlugin_Recover.cpp
39     FeaturesPlugin_Revolution.cpp
40     FeaturesPlugin_Rotation.cpp
41     FeaturesPlugin_Translation.cpp
42     FeaturesPlugin_Boolean.cpp
43     FeaturesPlugin_Intersection.cpp
44     FeaturesPlugin_Partition.cpp
45     FeaturesPlugin_Pipe.cpp
46     FeaturesPlugin_Placement.cpp
47     FeaturesPlugin_CompositeBoolean.cpp
48     FeaturesPlugin_CompositeSketch.cpp
49     FeaturesPlugin_ExtrusionBoolean.cpp
50     FeaturesPlugin_ExtrusionCut.cpp
51     FeaturesPlugin_ExtrusionFuse.cpp
52     FeaturesPlugin_RevolutionBoolean.cpp
53     FeaturesPlugin_RevolutionCut.cpp
54     FeaturesPlugin_RevolutionFuse.cpp
55     FeaturesPlugin_Union.cpp
56     FeaturesPlugin_ValidatorTransform.cpp
57     FeaturesPlugin_Validators.cpp
58     FeaturesPlugin_RemoveSubShapes.cpp
59     FeaturesPlugin_Tools.cpp
60     FeaturesPlugin_Symmetry.cpp
61 )
62
63 SET(XML_RESOURCES
64   plugin-Features.xml
65   extrusion_widget.xml
66   extrusioncut_widget.xml
67   extrusionfuse_widget.xml
68   revolution_widget.xml
69   revolutioncut_widget.xml
70   revolutionfuse_widget.xml
71   rotation_widget.xml
72   translation_widget.xml
73   boolean_widget.xml
74   recover_widget.xml
75   partition_widget.xml
76   placement_widget.xml
77   intersection_widget.xml
78   pipe_widget.xml
79   remove_subshapes_widget.xml
80   union_widget.xml
81   symmetry_widget.xml
82 )
83
84 SET(TEXT_RESOURCES
85     FeaturesPlugin_msg_en.ts
86     FeaturesPlugin_msg_ru.ts
87 )
88
89 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
90
91
92 INCLUDE_DIRECTORIES(
93   ../ModelAPI
94   ../GeomAPI
95   ../GeomAlgoAPI
96   ../GeomValidators
97   ../Events
98 )
99
100 SET(PROJECT_LIBRARIES
101     Events
102     ModelAPI
103     GeomAPI
104     GeomAlgoAPI
105     GeomValidators
106 )
107
108 ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS)
109 ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
110 TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES})
111
112 INSTALL(TARGETS FeaturesPlugin 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/Features)
115 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
116
117 ADD_UNIT_TESTS(TestExtrusion.py
118                TestExtrusionCut.py
119                TestExtrusionFuse.py
120                TestRevolution.py
121                TestRevolutionCut.py
122                TestRevolutionFuse.py
123                TestCompositeFeaturesOnCompSolids.py
124                TestPartition.py
125                TestPlacement.py
126                TestTranslation.py
127                TestRotation.py
128                TestBoolean.py
129                TestBooleanCompSolids.py
130                TestBooleanSmash.py
131                TestBooleanFill.py
132                TestMultiBoolean.py
133                TestSerialBoolean.py
134                TestIntersection.py
135                TestUnion.py
136                TestRemoveSubShapes.py
137                TestPipe.py
138                TestRecover.py
139                TestRecover1798.py
140                Test1922.py
141 )