aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/rtabmap-res-tool/portfile.cmake
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/rtabmap-res-tool/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/rtabmap-res-tool/portfile.cmake')
-rw-r--r--vcpkg/ports/rtabmap-res-tool/portfile.cmake30
1 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/rtabmap-res-tool/portfile.cmake b/vcpkg/ports/rtabmap-res-tool/portfile.cmake
new file mode 100644
index 0000000..122716a
--- /dev/null
+++ b/vcpkg/ports/rtabmap-res-tool/portfile.cmake
@@ -0,0 +1,30 @@
+# Only the standalone tool
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+set(VCPKG_BUILD_TYPE release)
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO introlab/rtabmap
+ REF ${VERSION}
+ SHA512 9bcd0f359e0ee8060cf7088761544a3f7d38aadb37df820958f0811aa7b8edbfaf00f00d9472a8bf46261d4e5d868f9c10785263aaabaf374b6e5aa5237d70b0
+ HEAD_REF master
+)
+file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DINSTALL_INCLUDE_DIR=include
+ -DINSTALL_CMAKE_DIR=lib/cmake
+ -DRTABMAP_VERSION=${VERSION}
+)
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools")
+file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")