mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 04:38:59 +08:00
3eafaa76fb
* Add new port mujoco * Add usage text. --------- Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
33 lines
1012 B
CMake
33 lines
1012 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO deepmind/mujoco
|
|
REF ${VERSION}
|
|
SHA512 518b9ae09ea7cd4d2095df1be985a30957c6d57846933e111c326e45b61ac002bea014cd0d7902653c85e61ef0ba156b3324eff0edb5613467fe8e07e92dd6da
|
|
PATCHES
|
|
fix_dependencies.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DMUJOCO_BUILD_EXAMPLES=OFF
|
|
-DMUJOCO_BUILD_TESTS=OFF
|
|
-DMUJOCO_TEST_PYTHON_UTIL=OFF
|
|
-DSIMULATE_BUILD_EXECUTABLE=OFF
|
|
-DMUJOCO_SIMULATE_USE_SYSTEM_GLFW=ON
|
|
-DMUJOCO_SIMULATE_USE_SYSTEM_MUJOCO=ON
|
|
)
|
|
|
|
vcpkg_cmake_install(ADD_BIN_TO_PATH)
|
|
vcpkg_cmake_config_fixup(
|
|
CONFIG_PATH lib/cmake/${PORT}
|
|
)
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
)
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|