mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 20:38:59 +08:00
dd991ef5b8
* update rbdl-orb port to newest source version * vcpkg x-add-version rbdl-orb * fixup cmake files location * update versions database * Update ports/rbdl-orb/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * update version database * update port to newest commit on rbdl-orb * update version database * update rbdl-orb port * update version database * Update versions/r-/rbdl-orb.json Co-authored-by: Billy O'Neal <bion@microsoft.com> * Update versions/r-/rbdl-orb.json Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Billy O'Neal <bion@microsoft.com> Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
45 lines
1.6 KiB
CMake
45 lines
1.6 KiB
CMake
if (EXISTS "${CURRENT_INSTALLED_DIR}/share/rbdl/copyright")
|
|
message(FATAL_ERROR "${PORT} conflict with rbdl, please remove rbdl before install ${PORT}.")
|
|
endif()
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RBDL_STATIC)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ORB-HD/rbdl-orb
|
|
REF a2e5428729b636c6232c3b90e4ddac80f7d42b1a
|
|
SHA512 2a10b3a7ac4e49b0ac5e7204f419a132bef7431c3ba55a72a8d10f9fea1972419682367bda32506b8daf58fc65405c7f3b7fe11fe661fc3dc6c98a3206cf1253
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH PARSER_SOURCE_PATH
|
|
REPO ORB-HD/URDF_Parser
|
|
REF 8fcc3174743cf3e7561ffb6625524f8133161df4
|
|
SHA512 6cba22e98f23e74fd7c1dcb356d88b5e24c61913dc900e584ed313b1fcce5d6832ceafcf15a3ea7a56714ab82d3cd7d9f4350d3d242614561c836bd4735e3f4f
|
|
)
|
|
if(NOT EXISTS "${SOURCE_PATH}/addons/urdfreader/thirdparty/urdfparser/CMakeLists.txt")
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/addons/urdfreader/thirdparty/urdfparser")
|
|
file(RENAME "${PARSER_SOURCE_PATH}" "${SOURCE_PATH}/addons/urdfreader/thirdparty/urdfparser")
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DRBDL_BUILD_STATIC=${RBDL_STATIC}
|
|
-DRBDL_BUILD_ADDON_LUAMODEL=ON
|
|
-DRBDL_BUILD_ADDON_GEOMETRY=ON
|
|
-DRBDL_BUILD_ADDON_URDFREADER=ON
|
|
-DRBDL_BUILD_EXECUTABLES=OFF
|
|
-DRBDL_VCPKG_BUILD=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/RBDL PACKAGE_NAME RBDL)
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|