2023-04-18 06:35:46 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO robotology/idyntree
|
|
|
|
REF "v${VERSION}"
|
2024-02-15 07:05:49 +08:00
|
|
|
SHA512 36b7fa58e3a3e773dd792d5fe62e4fd16c2265e1ed3ba7b2906fcf19e3f590c0a782beea63f443cb354919b3c9a91b370d3935ef1a39241a5b9be0f506c8a0c9
|
2023-04-18 06:35:46 +08:00
|
|
|
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_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"
|
|
|
|
)
|
|
|
|
|
2023-10-19 01:15:48 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2023-04-18 06:35:46 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|