diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-08-22 11:59:37 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-22 11:59:37 -0700 |
| commit | a4ad5fcf066cf56e72efb54fed73137b2c74bb8e (patch) | |
| tree | 6271b2222769550f9337f6311bb09830af1b02e2 | |
| parent | 766656b10b304cd62616ba685e7df8dfb72a6dd6 (diff) | |
| parent | b38b4715735f2369e1f404dbea3e151c29c964c4 (diff) | |
| download | vcpkg-a4ad5fcf066cf56e72efb54fed73137b2c74bb8e.tar.gz vcpkg-a4ad5fcf066cf56e72efb54fed73137b2c74bb8e.zip | |
Merge pull request #1670 from jasjuang/sophus
new port: sophus
| -rw-r--r-- | ports/sophus/CONTROL | 4 | ||||
| -rw-r--r-- | ports/sophus/portfile.cmake | 27 |
2 files changed, 31 insertions, 0 deletions
diff --git a/ports/sophus/CONTROL b/ports/sophus/CONTROL new file mode 100644 index 000000000..8214c4e7e --- /dev/null +++ b/ports/sophus/CONTROL @@ -0,0 +1,4 @@ +Source: sophus +Version: 1.0.0 +Build-Depends: eigen3, ceres +Description: Lie group library for C++ diff --git a/ports/sophus/portfile.cmake b/ports/sophus/portfile.cmake new file mode 100644 index 000000000..9a45e62b8 --- /dev/null +++ b/ports/sophus/portfile.cmake @@ -0,0 +1,27 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO strasdat/Sophus + REF v1.0.0 + SHA512 569634a8be9237d2240cf30c01e2677ece75d55f1196030f1228baca62fa22460e8ceb2a63bd46afdf7f02d8eb79c59d6ed666228b852da78590de897b278fab + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/Sophus") + +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib) + +# Put the license file where vcpkg expects it +file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/Sophus/) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/Sophus/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/Sophus/copyright) |
