early-access version 2853
This commit is contained in:
13
externals/vcpkg/ports/orocos-kdl/export-include-dir.patch
vendored
Executable file
13
externals/vcpkg/ports/orocos-kdl/export-include-dir.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/orocos_kdl/src/CMakeLists.txt b/orocos_kdl/src/CMakeLists.txt
|
||||
index 079ca8a..07eff4f 100644
|
||||
--- a/orocos_kdl/src/CMakeLists.txt
|
||||
+++ b/orocos_kdl/src/CMakeLists.txt
|
||||
@@ -126,7 +126,7 @@ ENDIF()
|
||||
#####end RPATH
|
||||
|
||||
# Needed so that the generated config.h can be used
|
||||
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
|
||||
+TARGET_INCLUDE_DIRECTORIES(orocos-kdl PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}> $<INSTALL_INTERFACE:include>)
|
||||
TARGET_LINK_LIBRARIES(orocos-kdl ${Boost_LIBRARIES})
|
||||
|
||||
INSTALL(TARGETS orocos-kdl
|
||||
31
externals/vcpkg/ports/orocos-kdl/portfile.cmake
vendored
Executable file
31
externals/vcpkg/ports/orocos-kdl/portfile.cmake
vendored
Executable file
@@ -0,0 +1,31 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO orocos/orocos_kinematics_dynamics
|
||||
REF v1.4.0
|
||||
SHA512 7156465e2aff02f472933617512069355836a03a02d4587cfe03c1b1d667a9762a4e3ed6e055b2a44f1fce1b6746179203c7204389626a7b458dcab1b28930d8
|
||||
HEAD_REF master
|
||||
PATCHES export-include-dir.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}/orocos_kdl
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/orocos_kdl/cmake TARGET_PATH share/orocos_kdl)
|
||||
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/share/orocos_kdl/orocos_kdl-config.cmake _contents)
|
||||
string(REPLACE "\${CMAKE_CURRENT_LIST_DIR}/../../.." "\${CMAKE_CURRENT_LIST_DIR}/../.." _contents "${_contents}")
|
||||
string(REPLACE "\${_IMPORT_PREFIX}" "\${CMAKE_CURRENT_LIST_DIR}/../.." _contents "${_contents}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/orocos_kdl/orocos_kdl-config.cmake "${_contents}")
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/debug/share
|
||||
${CURRENT_PACKAGES_DIR}/share/doc
|
||||
${CURRENT_PACKAGES_DIR}/doc/liborocos-kdl)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/orocos_kdl/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
vcpkg_fixup_pkgconfig()
|
||||
10
externals/vcpkg/ports/orocos-kdl/vcpkg.json
vendored
Executable file
10
externals/vcpkg/ports/orocos-kdl/vcpkg.json
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "orocos-kdl",
|
||||
"version": "1.4",
|
||||
"port-version": 5,
|
||||
"description": "Kinematics and Dynamics Library.",
|
||||
"homepage": "https://github.com/orocos/orocos_kinematics_dynamics",
|
||||
"dependencies": [
|
||||
"eigen3"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user