2021-08-10 00:07:37 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RBDL_STATIC)
|
|
|
|
|
2022-05-18 02:15:06 +08:00
|
|
|
vcpkg_from_github(
|
2022-07-23 05:35:15 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO rbdl/rbdl
|
2023-10-03 07:35:30 +08:00
|
|
|
REF 619175a441ba769ab1be34a727644f4dd13bf841
|
|
|
|
SHA512 0c6cd78c4385e582f481a6f92d5c3a01f5d3bcd3a7cc3417a504209dae1856d788157db8d9f4173493619f103dea323bd57ddae0bc63162d72b03031dae9a822
|
2022-07-23 05:35:15 +08:00
|
|
|
HEAD_REF master
|
2020-10-13 06:51:43 +08:00
|
|
|
)
|
|
|
|
|
2022-07-23 05:35:15 +08:00
|
|
|
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()
|
2020-10-13 06:51:43 +08:00
|
|
|
|
2021-08-10 00:07:37 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-10-13 06:51:43 +08:00
|
|
|
OPTIONS
|
|
|
|
-DRBDL_BUILD_STATIC=${RBDL_STATIC}
|
2022-07-23 05:35:15 +08:00
|
|
|
-DRBDL_BUILD_ADDON_LUAMODEL=ON
|
|
|
|
-DRBDL_BUILD_ADDON_GEOMETRY=ON
|
|
|
|
-DRBDL_BUILD_ADDON_URDFREADER=ON
|
|
|
|
-DRBDL_BUILD_EXECUTABLES=OFF
|
|
|
|
-DRBDL_VCPKG_BUILD=ON
|
2020-10-13 06:51:43 +08:00
|
|
|
)
|
|
|
|
|
2021-08-10 00:07:37 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-10-13 06:51:43 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2022-07-23 05:35:15 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/RBDL PACKAGE_NAME RBDL)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2021-08-10 00:07:37 +08:00
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|