-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
CMakeLists.txt
110 lines (98 loc) · 2.77 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
set(PXR_PACKAGE pxrUsdTranslators)
pxr_plugin(${PXR_PACKAGE}
MAYA_PLUGIN
LIBRARIES
arch
gf
kind
sdf
tf
usd
usdGeom
usdLux
usdMaya
usdRi
usdShade
usdSkel
usdUtils
vt
${MAYA_Foundation_LIBRARY}
${MAYA_OpenMaya_LIBRARY}
${MAYA_OpenMayaAnim_LIBRARY}
${MAYA_OpenMayaFX_LIBRARY}
INCLUDE_DIRS
${MAYA_INCLUDE_DIRS}
PRIVATE_CLASSES
cameraWriter
fileTextureWriter
instancerWriter
jointWriter
locatorWriter
meshWriter
nurbsCurveWriter
nurbsSurfaceWriter
particleWriter
strokeWriter
CPPFILES
cameraReader.cpp
lightReader.cpp
lightWriter.cpp
materialReader.cpp
meshReader.cpp
meshWriter_Primvars.cpp
meshWriter_Skin.cpp
meshWriter_Subdiv.cpp
nurbsCurvesReader.cpp
nurbsPatchReader.cpp
plugin.cpp
scopeReader.cpp
skelReader.cpp
xformReader.cpp
PRIVATE_HEADERS
api.h
RESOURCE_FILES
plugInfo.json
DISABLE_PRECOMPILED_HEADERS
)
pxr_test_scripts(
testenv/testPxrUsdTranslators.py
testenv/testPxrUsdTranslatorsScope.py
testenv/testPxrUsdTranslatorsStroke.py
)
pxr_register_test(testPxrUsdTranslators
CUSTOM_PYTHON ${MAYA_PY_EXECUTABLE}
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testPxrUsdTranslators"
ENV
MAYA_PLUG_IN_PATH=${CMAKE_INSTALL_PREFIX}/third_party/maya/plugin
MAYA_SCRIPT_PATH=${CMAKE_INSTALL_PREFIX}/third_party/maya/lib/usd/usdMaya/resources
MAYA_DISABLE_CIP=1
MAYA_APP_DIR=<PXR_TEST_DIR>/maya_profile
)
pxr_install_test_dir(
SRC testenv/ScopeTest
DEST testPxrUsdTranslatorsScope
)
pxr_register_test(testPxrUsdTranslatorsScope
CUSTOM_PYTHON ${MAYA_PY_EXECUTABLE}
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testPxrUsdTranslatorsScope"
TESTENV testPxrUsdTranslatorsScope
ENV
MAYA_PLUG_IN_PATH=${CMAKE_INSTALL_PREFIX}/third_party/maya/plugin
MAYA_SCRIPT_PATH=${CMAKE_INSTALL_PREFIX}/third_party/maya/lib/usd/usdMaya/resources
MAYA_DISABLE_CIP=1
MAYA_APP_DIR=<PXR_TEST_DIR>/maya_profile
)
pxr_install_test_dir(
SRC testenv/StrokeExportTest
DEST testPxrUsdTranslatorsStroke
)
pxr_register_test(testPxrUsdTranslatorsStroke
CUSTOM_PYTHON ${MAYA_PY_EXECUTABLE}
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testPxrUsdTranslatorsStroke"
TESTENV testPxrUsdTranslatorsStroke
ENV
MAYA_PLUG_IN_PATH=${CMAKE_INSTALL_PREFIX}/third_party/maya/plugin
MAYA_SCRIPT_PATH=${CMAKE_INSTALL_PREFIX}/third_party/maya/lib/usd/usdMaya/resources
MAYA_DISABLE_CIP=1
MAYA_APP_DIR=<PXR_TEST_DIR>/maya_profile
)