-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add qpsolvers-eigen and sharedlibpp to the robotology-superbuild (#1735)
* Add qpsolvers-eigen to the robotology-superbuild * Bump BlockFactory to 1.0.1 * Fix name of libsharedlibpp in conda-forge
- Loading branch information
1 parent
dcebb82
commit 4b07a25
Showing
5 changed files
with
76 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# SPDX-FileCopyrightText: Fondazione Istituto Italiano di Tecnologia (IIT) | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
include(YCMEPHelper) | ||
include(FindOrBuildPackage) | ||
|
||
set(QpSolversEigen_DEPENDS "") | ||
find_or_build_package(sharedlibpp QUIET) | ||
list(APPEND QpSolversEigen_DEPENDS sharedlibpp) | ||
find_or_build_package(YCM QUIET) | ||
list(APPEND QpSolversEigen_DEPENDS YCM) | ||
find_or_build_package(OsqpEigen QUIET) | ||
list(APPEND QpSolversEigen_DEPENDS OsqpEigen) | ||
|
||
|
||
# proxqp only supports MSVC Toolset v143, i.e. Visual Studio 2022 | ||
if(NOT MSVC OR MSVC_VERSION VERSION_GREATER_EQUAL 1930) | ||
find_or_build_package(proxsuite QUIET) | ||
list(APPEND QpSolversEigen_DEPENDS proxsuite) | ||
set(QPSOLVERSEIGEN_ENABLE_PROXQP ON) | ||
else() | ||
set(QPSOLVERSEIGEN_ENABLE_PROXQP OFF) | ||
endif() | ||
|
||
ycm_ep_helper(QpSolversEigen TYPE GIT | ||
STYLE GITHUB | ||
REPOSITORY ami-iit/qpsolvers-eigen.git | ||
TAG main | ||
COMPONENT dynamics | ||
FOLDER src | ||
CMAKE_ARGS -DBUILD_TESTING:BOOL=OFF | ||
-DQPSOLVERSEIGEN_USES_SYSTEM_SHAREDLIBPP:BOOL=ON | ||
-DQPSOLVERSEIGEN_USES_SYSTEM_YCM:BOOL=ON | ||
-DQPSOLVERSEIGEN_ENABLE_OSQP:BOOL=ON | ||
-DQPSOLVERSEIGEN_ENABLE_PROXQP:BOOL=${QPSOLVERSEIGEN_ENABLE_PROXQP} | ||
DEPENDS ${QpSolversEigen_DEPENDS}) | ||
|
||
set(QpSolversEigen_CONDA_PKG_NAME qpsolvers-eigen) | ||
set(QpSolversEigen_CONDA_PKG_CONDA_FORGE_OVERRIDE ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# SPDX-FileCopyrightText: Fondazione Istituto Italiano di Tecnologia (IIT) | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
include(YCMEPHelper) | ||
|
||
find_or_build_package(YCM QUIET) | ||
|
||
ycm_ep_helper(sharedlibpp TYPE GIT | ||
STYLE GITHUB | ||
REPOSITORY ami-iit/sharedlibpp.git | ||
TAG main | ||
COMPONENT dynamics | ||
FOLDER src | ||
DEPENDS YCM | ||
CMAKE_ARGS) | ||
|
||
set(sharedlibpp_CONDA_PKG_NAME libsharedlibpp) | ||
set(sharedlibpp_CONDA_PKG_CONDA_FORGE_OVERRIDE ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters