diff options
Diffstat (limited to 'vcpkg/ports/rtabmap-res-tool')
| -rw-r--r-- | vcpkg/ports/rtabmap-res-tool/CMakeLists.txt | 10 | ||||
| -rw-r--r-- | vcpkg/ports/rtabmap-res-tool/portfile.cmake | 30 | ||||
| -rw-r--r-- | vcpkg/ports/rtabmap-res-tool/vcpkg.json | 14 |
3 files changed, 54 insertions, 0 deletions
diff --git a/vcpkg/ports/rtabmap-res-tool/CMakeLists.txt b/vcpkg/ports/rtabmap-res-tool/CMakeLists.txt new file mode 100644 index 0000000..cb49576 --- /dev/null +++ b/vcpkg/ports/rtabmap-res-tool/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required(VERSION 3.10) +project(rtabmap) +set(PROJECT_PREFIX rtabmap) + +include(GenerateExportHeader) +include(GNUInstallDirs) + +list(PREPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake_modules") + +add_subdirectory(utilite) 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")
diff --git a/vcpkg/ports/rtabmap-res-tool/vcpkg.json b/vcpkg/ports/rtabmap-res-tool/vcpkg.json new file mode 100644 index 0000000..77fe147 --- /dev/null +++ b/vcpkg/ports/rtabmap-res-tool/vcpkg.json @@ -0,0 +1,14 @@ +{ + "name": "rtabmap-res-tool", + "version": "0.23.2", + "description": "Real-Time Appearance-Based Mapping, resource generator", + "homepage": "https://introlab.github.io/rtabmap/", + "license": "BSD-3-Clause", + "supports": "native", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] +} |