Files
Mujoco_WASM/test/experimental/CMakeLists.txt
T
Sam Haves 9e150fe82c 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
2025-12-19 08:00:15 -08:00

33 lines
1.0 KiB
CMake

# Copyright 2021 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Only support testing when building against a standalone version of USD.
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)
target_link_libraries(
usd_test_utils
PUBLIC usd
tf
gtest
gmock
mujoco
)
add_subdirectory(usd/plugins/mjcf)
endif()