mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 05:53:03 +08:00
[idyntree] Add new port (#30810)
* [idyntree] Add new port * [idyntree] Update versions
This commit is contained in:
parent
aa507f9ad2
commit
3c7e757695
56
ports/idyntree/portfile.cmake
Normal file
56
ports/idyntree/portfile.cmake
Normal file
@ -0,0 +1,56 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO robotology/idyntree
|
||||
REF "v${VERSION}"
|
||||
SHA512 5661fb442fb6d28e71efcb9780c4205b90017e7f4c0bc761c170e59b1cff22b281c5c8c15bf9c4b2cede1e0bbbb05b53f4a22556e0b5b3678abd4d3f47be49d4
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
"assimp" IDYNTREE_USES_ASSIMP
|
||||
"irrlicht" IDYNTREE_USES_IRRLICHT
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DIDYNTREE_USES_IPOPT:BOOL=OFF
|
||||
-DIDYNTREE_USES_OSQPEIGEN:BOOL=OFF
|
||||
-DIDYNTREE_USES_MATLAB:BOOL=OFF
|
||||
-DIDYNTREE_USES_PYTHON:BOOL=OFF
|
||||
-DIDYNTREE_USES_OCTAVE:BOOL=OFF
|
||||
-DIDYNTREE_USES_LUA:BOOL=OFF
|
||||
-DIDYNTREE_USES_YARP:BOOL=OFF
|
||||
-DIDYNTREE_USES_ICUB_MAIN:BOOL=OFF
|
||||
-DIDYNTREE_USES_QT5:BOOL=OFF
|
||||
-DIDYNTREE_USES_ALGLIB:BOOL=OFF
|
||||
-DIDYNTREE_USES_WORHP:BOOL=OFF
|
||||
-DIDYNTREE_COMPILE_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(
|
||||
PACKAGE_NAME iDynTree
|
||||
CONFIG_PATH lib/cmake/iDynTree)
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
set(TOOL_NAMES_LIST idyntree-model-info)
|
||||
if ("assimp" IN_LIST FEATURES)
|
||||
list(APPEND TOOL_NAMES_LIST idyntree-model-simplify-shapes)
|
||||
endif()
|
||||
if ("irrlicht" IN_LIST FEATURES)
|
||||
list(APPEND TOOL_NAMES_LIST idyntree-model-view)
|
||||
endif()
|
||||
vcpkg_copy_tools(
|
||||
TOOL_NAMES ${TOOL_NAMES_LIST}
|
||||
AUTO_CLEAN
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
)
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.LGPL2" "${SOURCE_PATH}/LICENSE.LGPL3")
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
4
ports/idyntree/usage
Normal file
4
ports/idyntree/usage
Normal file
@ -0,0 +1,4 @@
|
||||
The package idyntree provides CMake targets:
|
||||
|
||||
find_package(iDynTree CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE iDynTree::idyntree-core iDynTree::idyntree-model iDynTree::idyntree-modelio iDynTree::idyntree-modelio iDynTree::idyntree-high-level iDynTree::idyntree-estimation)
|
37
ports/idyntree/vcpkg.json
Normal file
37
ports/idyntree/vcpkg.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "idyntree",
|
||||
"version": "8.1.0",
|
||||
"description": "Multibody Dynamics Library designed for Free Floating Robots.",
|
||||
"homepage": "https://github.com/robotology/idyntree",
|
||||
"license": "LGPL-2.1-or-later",
|
||||
"dependencies": [
|
||||
"eigen3",
|
||||
"libxml2",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"assimp",
|
||||
"irrlicht"
|
||||
],
|
||||
"features": {
|
||||
"assimp": {
|
||||
"description": "Add support for loading meshes",
|
||||
"dependencies": [
|
||||
"assimp"
|
||||
]
|
||||
},
|
||||
"irrlicht": {
|
||||
"description": "Add support for irrlicht-based visualizer",
|
||||
"dependencies": [
|
||||
"irrlicht"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -3156,6 +3156,10 @@
|
||||
"baseline": "1.0.12",
|
||||
"port-version": 7
|
||||
},
|
||||
"idyntree": {
|
||||
"baseline": "8.1.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"if97": {
|
||||
"baseline": "2.1.3",
|
||||
"port-version": 0
|
||||
|
9
versions/i-/idyntree.json
Normal file
9
versions/i-/idyntree.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "65e8740ace938a59b21dc97e30ab531c005ce399",
|
||||
"version": "8.1.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user