Move CompareModel to a separate library.

PiperOrigin-RevId: 927174846
Change-Id: Ia8b8b2c8593133d8910399be755e614282bf3252
This commit is contained in:
Yuval Tassa
2026-06-05 02:44:22 -07:00
committed by Copybara-Service
parent 5ce9a0ad0b
commit d80a847bae
14 changed files with 186 additions and 108 deletions
+3 -1
View File
@@ -14,13 +14,14 @@
mujoco_test(
user_model_test
ADDITIONAL_LINK_LIBRARIES absl::str_format
ADDITIONAL_LINK_LIBRARIES absl::str_format compare_model
)
mujoco_test(user_objects_test)
mujoco_test(
user_api_test
ADDITIONAL_LINK_LIBRARIES compare_model
PROPERTIES
ENVIRONMENT
"MUJOCO_PLUGIN_DIR=$<TARGET_FILE_DIR:elasticity>"
@@ -28,6 +29,7 @@ mujoco_test(
mujoco_test(
user_recompile_test
ADDITIONAL_LINK_LIBRARIES compare_model
PROPERTIES
ENVIRONMENT
"MUJOCO_PLUGIN_DIR=$<TARGET_FILE_DIR:elasticity>"
+1
View File
@@ -31,6 +31,7 @@
#include <mujoco/mjspec.h>
#include <mujoco/mjplugin.h>
#include "src/xml/xml_api.h"
#include "test/compare_model.h"
#include "test/fixture.h"
namespace mujoco {
+1
View File
@@ -26,6 +26,7 @@
#include <absl/strings/str_format.h>
#include <mujoco/mjmodel.h>
#include <mujoco/mujoco.h>
#include "test/compare_model.h"
#include "test/fixture.h"
namespace mujoco {
+1
View File
@@ -29,6 +29,7 @@
#include <mujoco/mjspec.h>
#include "src/xml/xml_api.h"
#include "src/xml/xml_numeric_format.h"
#include "test/compare_model.h"
#include "test/fixture.h"
namespace mujoco {