mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 20:18:53 +08:00
462885c7fb
* [idyntree] Update idyntree port to 9.0.0 Furthermore, remove irrlicht feature from default features as since version 9.0.0 idyntree requires irrlicht compiled with SDL support on Windows, and that is not available in irrlicht compiled by vcpkg. * [idyntree] Update versions
56 lines
1.7 KiB
CMake
56 lines
1.7 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO robotology/idyntree
|
|
REF "v${VERSION}"
|
|
SHA512 4f3b0f14c4b280c3cf1f2d232e40b4ebebbccf241d31e6fdda94a7e2be8b245373c13ef9c99aa6424a37e56e927ef62d38961d02a1b11585a905d4bef47e3045
|
|
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"
|
|
)
|
|
|
|
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}")
|