aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/poselib
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/poselib
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/poselib')
-rw-r--r--vcpkg/ports/poselib/portfile.cmake25
-rw-r--r--vcpkg/ports/poselib/vcpkg.json18
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/poselib/portfile.cmake b/vcpkg/ports/poselib/portfile.cmake
new file mode 100644
index 0000000..a91e46d
--- /dev/null
+++ b/vcpkg/ports/poselib/portfile.cmake
@@ -0,0 +1,25 @@
+if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO PoseLib/PoseLib
+ REF "v${VERSION}"
+ SHA512 adc43c4f0fd8544d2c7ef05538696a8ae614837f5e90c31b8b9c8f4b5a11eb773229c22444e01482de697a0f5b3137d4a63a24ba9fcc72b366a347252d3c16b1
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DMARCH_NATIVE=OFF
+ -DWITH_BENCHMARK=OFF
+ -DPYTHON_PACKAGE=OFF
+)
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/PoseLib)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
diff --git a/vcpkg/ports/poselib/vcpkg.json b/vcpkg/ports/poselib/vcpkg.json
new file mode 100644
index 0000000..018d5dc
--- /dev/null
+++ b/vcpkg/ports/poselib/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "poselib",
+ "version": "2.0.4",
+ "description": "Minimal solvers for calibrated camera pose estimation",
+ "homepage": "https://github.com/PoseLib/PoseLib",
+ "license": "BSD-3-Clause",
+ "dependencies": [
+ "eigen3",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}