forked from PixarAnimationStudios/OpenUSD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
326 lines (283 loc) · 7.08 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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
set(PXR_PREFIX pxr/usd)
set(PXR_PACKAGE usdGeom)
pxr_library(usdGeom
LIBRARIES
js
tf
plug
vt
sdf
trace
usd
work
${Boost_PYTHON_LIBRARY}
INCLUDE_DIRS
${Boost_INCLUDE_DIRS}
PUBLIC_CLASSES
debugCodes
tokens
bboxCache
constraintTarget
xformCache
basisCurves
boundable
boundableComputeExtent
camera
capsule
cone
cube
curves
cylinder
imageable
gprim
mesh
metrics
modelAPI
motionAPI
nurbsCurves
nurbsPatch
pointBased
pointInstancer
points
primvar
primvarsAPI
scope
sphere
subset
xform
xformable
xformOp
xformCommonAPI
PUBLIC_HEADERS
api.h
PYTHON_CPPFILES
moduleDeps.cpp
PYMODULE_CPPFILES
module.cpp
wrapBBoxCache.cpp
wrapBasisCurves.cpp
wrapBoundable.cpp
wrapCamera.cpp
wrapConstraintTarget.cpp
wrapCapsule.cpp
wrapCone.cpp
wrapCube.cpp
wrapCurves.cpp
wrapCylinder.cpp
wrapGprim.cpp
wrapImageable.cpp
wrapMesh.cpp
wrapMetrics.cpp
wrapModelAPI.cpp
wrapMotionAPI.cpp
wrapNurbsCurves.cpp
wrapNurbsPatch.cpp
wrapPointBased.cpp
wrapPointInstancer.cpp
wrapPoints.cpp
wrapPrimvar.cpp
wrapPrimvarsAPI.cpp
wrapScope.cpp
wrapSphere.cpp
wrapSubset.cpp
wrapTokens.cpp
wrapXform.cpp
wrapXformCache.cpp
wrapXformable.cpp
wrapXformOp.cpp
wrapXformCommonAPI.cpp
PYMODULE_FILES
__init__.py
RESOURCE_FILES
plugInfo.json
generatedSchema.usda
schema.usda:usdGeom/schema.usda
)
pxr_test_scripts(
testenv/testUsdGeomBasisCurves.py
testenv/testUsdGeomBBoxCache.py
testenv/testUsdGeomCamera.py
testenv/testUsdGeomComputeAtTime.py
testenv/testUsdGeomConstraintTarget.py
testenv/testUsdGeomConsts.py
testenv/testUsdGeomCurves.py
testenv/testUsdGeomExtentTransform.py
testenv/testUsdGeomMesh.py
testenv/testUsdGeomMetrics.py
testenv/testUsdGeomMotionAPI.py
testenv/testUsdGeomNoPlugLoad.py
testenv/testUsdGeomPointInstancer.py
testenv/testUsdGeomPrimvar.py
testenv/testUsdGeomPurposeVisibility.py
testenv/testUsdGeomSchemata.py
testenv/testUsdGeomSubset.py
testenv/testUsdGeomXformable.py
testenv/testUsdGeomXformCommonAPI.py
)
pxr_build_test(testUsdGeomXformCache
LIBRARIES
usd
usdGeom
CPPFILES
testenv/testUsdGeomXformCache.cpp
)
pxr_build_test(testUsdGeomCreateAttribute
LIBRARIES
usd
usdGeom
CPPFILES
testenv/testUsdGeomCreateAttribute.cpp
)
pxr_build_test(testUsdGeomIsA
LIBRARIES
usd
usdGeom
CPPFILES
testenv/testUsdGeomIsA.cpp
)
pxr_build_test(testUsdGeomHasAPI
LIBRARIES
usd
usdGeom
CPPFILES
testenv/testUsdGeomHasAPI.cpp
)
pxr_install_test_dir(
SRC testenv/testUsdGeomBasisCurves
DEST testUsdGeomBasisCurves
)
pxr_install_test_dir(
SRC testenv/testUsdGeomBBoxCache
DEST testUsdGeomBBoxCache
)
pxr_install_test_dir(
SRC testenv/testUsdGeomConsts
DEST testUsdGeomConsts
)
pxr_install_test_dir(
SRC testenv/testUsdGeomPointInstancer
DEST testUsdGeomPointInstancer
)
pxr_install_test_dir(
SRC testenv/testUsdGeomSubset
DEST testUsdGeomSubset)
pxr_install_test_dir(
SRC testenv/testUsdGeomBBoxCache
DEST testUsdGeomBBoxCache
)
pxr_install_test_dir(
SRC testenv/testUsdGeomExtentTransform
DEST testUsdGeomExtentTransform
)
pxr_install_test_dir(
SRC testenv/testUsdGeomComputeAtTime
DEST testUsdGeomComputeAtTime
)
pxr_register_test(testUsdGeomBasisCurves
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomBasisCurves"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomBBoxCache
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomBBoxCache"
EXPECTED_RETURN_CODE 0
ENV
TF_DEBUG=USDGEOM_BBOX
USD_ASSIGN_MASTERS_DETERMINISTICALLY=1
)
pxr_register_test(testUsdGeomCamera
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomCamera"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomConstraintTarget
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomConstraintTarget"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomConsts
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomConsts"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomCreateAttribute
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomCreateAttribute"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomCurves
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomCurves"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomMesh
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomMesh"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomSubset
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomSubset"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomIsA
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomIsA"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomHasAPI
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomHasAPI"
EXPECTED_RETURN_CODE 0
)
# This tests functionality when usdGeom has not been loaded. That isn't
# possible with a monolithic library.
if(NOT PXR_BUILD_MONOLITHIC)
pxr_register_test(testUsdGeomNoPlugLoad
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomNoPlugLoad"
EXPECTED_RETURN_CODE 0
)
endif()
pxr_register_test(testUsdGeomPrimvar
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomPrimvar"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomPointInstancer
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomPointInstancer"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomPurposeVisibility
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomPurposeVisibility"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomSchemata
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomSchemata"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomXformable
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomXformable"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomXformCache
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomXformCache"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomXformCommonAPI
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomXformCommonAPI"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomExtentTransform
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomExtentTransform"
EXPECTED_RETURN_CODE 0
)
pxr_register_test(testUsdGeomComputeAtTime
PYTHON
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testUsdGeomComputeAtTime"
EXPECTED_RETURN_CODE 0
)