Activate plugin tests on Windows.

PiperOrigin-RevId: 489183597
Change-Id: I1e5212777514fbc5a246f02a4446a9dbb8a0dbd3
This commit is contained in:
Alessio Quaglino
2022-11-17 05:05:18 -08:00
committed by Copybara-Service
parent fa0f6399d5
commit a9781d9bea
3 changed files with 34 additions and 6 deletions
+12 -4
View File
@@ -33,6 +33,17 @@ macro(mujoco_test name)
set_tests_properties(
${testList} PROPERTIES ENVIRONMENT "PATH=$<TARGET_FILE_DIR:mujoco>;$ENV{PATH}"
)
set_tests_properties(
${testList} PROPERTIES ENVIRONMENT "MUJOCO_PLUGIN_DIR=${CMAKE_BINARY_DIR}/bin"
)
elseif(APPLE)
set_tests_properties(
${testList} PROPERTIES ENVIRONMENT "MUJOCO_PLUGIN_DIR=${CMAKE_BINARY_DIR}/lib"
)
else()
set_tests_properties(
${testList} PROPERTIES ENVIRONMENT "MUJOCO_PLUGIN_DIR=${CMAKE_BINARY_DIR}/lib"
)
endif()
endmacro()
@@ -65,7 +76,4 @@ add_subdirectory(engine)
add_subdirectory(sample)
add_subdirectory(user)
add_subdirectory(xml)
if(NOT WIN32)
add_subdirectory(plugin/elasticity)
endif()
add_subdirectory(plugin/elasticity)