/
CMakeLists.txt
201 lines (173 loc) · 4.39 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
add_subdirectory(App)
if(BUILD_GUI)
add_subdirectory(Gui)
endif(BUILD_GUI)
set(PartDesign_Scripts
__init__.py
Init.py
TestPartDesignApp.py
)
if(BUILD_GUI)
list (APPEND PartDesign_Scripts
InitGui.py
TestPartDesignGui.py
InvoluteGearFeature.py
InvoluteGearFeature.ui
SprocketFeature.py
SprocketFeature.ui
)
endif(BUILD_GUI)
set(PartDesign_OtherScripts
Scripts/__init__.py
Scripts/DistanceBolt.py
Scripts/Epitrochoid.py
Scripts/FilletArc.py
Scripts/Gear.py
Scripts/Parallelepiped.py
Scripts/RadialCopy.py
Scripts/Spring.py
)
set(PartDesign_TestScripts
PartDesignTests/__init__.py
PartDesignTests/TestDatum.py
PartDesignTests/TestShapeBinder.py
PartDesignTests/TestPad.py
PartDesignTests/TestPocket.py
PartDesignTests/TestHole.py
PartDesignTests/TestRevolve.py
PartDesignTests/TestLoft.py
PartDesignTests/TestPipe.py
PartDesignTests/TestPrimitive.py
PartDesignTests/TestMirrored.py
PartDesignTests/TestLinearPattern.py
PartDesignTests/TestPolarPattern.py
PartDesignTests/TestMultiTransform.py
PartDesignTests/TestBoolean.py
PartDesignTests/TestFillet.py
PartDesignTests/TestChamfer.py
PartDesignTests/TestDraft.py
PartDesignTests/TestThickness.py
)
set(PartDesign_GearScripts
fcgear/__init__.py
fcgear/fcgear.py
fcgear/fcgeardialog.py
fcgear/involute.py
fcgear/svggear.py
)
set(PartDesign_SprocketScripts
fcsprocket/__init__.py
fcsprocket/fcsprocket.py
fcsprocket/fcsprocketdialog.py
fcsprocket/sprocket.py
)
set(PartDesign_WizardShaft
WizardShaft/__init__.py
WizardShaft/WizardShaft.svg
WizardShaft/WizardShaft.py
WizardShaft/WizardShaftTable.py
WizardShaft/Shaft.py
WizardShaft/ShaftFeature.py
WizardShaft/ShaftDiagram.py
WizardShaft/SegmentFunction.py
)
add_custom_target(PartDesignScripts ALL SOURCES
${PartDesign_Scripts}
${PartDesign_OtherScripts}
${PartDesign_TestScripts}
${PartDesign_GearScripts}
${PartDesign_SprocketScripts}
)
fc_target_copy_resource(PartDesignScripts
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}/Mod/PartDesign
${PartDesign_Scripts}
${PartDesign_OtherScripts}
${PartDesign_TestScripts}
${PartDesign_GearScripts}
${PartDesign_SprocketScripts}
)
INSTALL(
FILES
${PartDesign_Scripts}
DESTINATION
Mod/PartDesign
)
INSTALL(
FILES
${PartDesign_OtherScripts}
DESTINATION
Mod/PartDesign/Scripts
)
INSTALL(
FILES
${PartDesign_TestScripts}
DESTINATION
Mod/PartDesign/PartDesignTests
)
INSTALL(
FILES
${PartDesign_GearScripts}
DESTINATION
Mod/PartDesign/fcgear
)
INSTALL(
FILES
${PartDesign_SprocketScripts}
DESTINATION
Mod/PartDesign/fcsprocket
)
set(PartDesignHoleDefines
Resources/Hole/din7984.json
Resources/Hole/iso10642.json
Resources/Hole/iso14583.json
Resources/Hole/iso14583part.json
Resources/Hole/iso4762_7089.json
Resources/Hole/iso4762.json
)
add_custom_target(PartDesignHole ALL SOURCES
${PartDesignHoleDefines}
)
fc_target_copy_resource(PartDesignHole
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/PartDesign
${PartDesignHoleDefines}
)
INSTALL(
FILES
${PartDesignHoleDefines}
DESTINATION
${CMAKE_INSTALL_DATADIR}/Mod/PartDesign/Resources/Hole
)
if(BUILD_FEM)
SET(WizardShaft_SRCS
${PartDesign_WizardShaft}
)
SOURCE_GROUP("wizardshaft" FILES ${WizardShaft_SRCS})
SET(all_wizardshaft_files ${WizardShaft_SRCS})
ADD_CUSTOM_TARGET(WizardShaft ALL
SOURCES ${all_wizardshaft_files}
)
SET(all_files ${all_wizardshaft_files})
fc_copy_sources(WizardShaft "${CMAKE_BINARY_DIR}/Mod/PartDesign" ${all_files})
INSTALL(
FILES
${WizardShaft_SRCS}
DESTINATION
Mod/PartDesign/WizardShaft
)
endif(BUILD_FEM)
SET(FeatureHole_SRCS
FeatureHole/__init__.py
FeatureHole/HoleGui.py
FeatureHole/FeatureHole.py
FeatureHole/TaskHole.py
FeatureHole/ViewProviderHole.py
FeatureHole/Standards.py
FeatureHole/PartDesign_Hole.svg
)
SOURCE_GROUP("featurehole" FILES ${FeatureHole_SRCS})
SET(FeatureHole_UI
FeatureHole/TaskHole.ui
)
SET(all_featurehole_files ${FeatureHole_SRCS} ${FeatureHole_UI})