Add separate build step for OpenUSD to third_party_deps.
This will fetch and call the build_usd.py build helper for OpenUSD and build within the MuJoCo _deps folder. Simplifying the build process for MuJoCo with USD. Users can still provide their own USD build, but must now do so via pxr_DIR. PiperOrigin-RevId: 846735578 Change-Id: I0da7eb2da6465e2d518084340e762bf370adb6d5
This commit is contained in:
committed by
Copybara-Service
parent
76e0a78b32
commit
9e150fe82c
@@ -13,9 +13,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
# Only support testing when building against a standalone version of USD.
|
||||
if(MUJOCO_WITH_USD AND USD_DIR)
|
||||
find_package(pxr REQUIRED)
|
||||
|
||||
if(MUJOCO_WITH_USD)
|
||||
add_library(usd_test_utils STATIC usd/test_utils.h usd/test_utils.cc)
|
||||
target_include_directories(usd_test_utils PUBLIC ${MUJOCO_TEST_INCLUDE})
|
||||
target_compile_definitions(usd_test_utils PUBLIC MJSTATIC)
|
||||
|
||||
Reference in New Issue
Block a user