2020-11-04 14:51:43 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO introlab/rtabmap
|
2024-04-02 04:32:08 +08:00
|
|
|
REF ${VERSION}
|
|
|
|
SHA512 2b424f5b6458cf0f976e711985708f104b56d11921c9c43c6a837f9d3dc9e9e802308f1aa2b6d0e7e6ddf13623ff1ad2922b5f54254d16ee5811e786d27b9f98
|
2020-11-04 14:51:43 +08:00
|
|
|
HEAD_REF master
|
2021-11-05 15:24:45 +08:00
|
|
|
PATCHES
|
2024-04-02 04:32:08 +08:00
|
|
|
apple.patch
|
2023-11-29 16:53:34 +08:00
|
|
|
fix_link.patch
|
2024-04-02 04:32:08 +08:00
|
|
|
link-keywords.patch
|
|
|
|
multi-definition.patch
|
|
|
|
rtabmap-res-tool.patch
|
2024-04-16 01:51:41 +08:00
|
|
|
gklib.patch
|
2020-11-04 14:51:43 +08:00
|
|
|
)
|
|
|
|
|
2020-11-07 05:20:47 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2023-04-03 11:54:56 +08:00
|
|
|
FEATURES
|
2024-04-02 04:32:08 +08:00
|
|
|
gui WITH_QT
|
|
|
|
k4w2 WITH_K4W2
|
|
|
|
octomap WITH_OCTOMAP
|
|
|
|
openni2 WITH_OPENNI2
|
|
|
|
realsense2 WITH_REALSENSE2
|
|
|
|
tools BUILD_APP
|
|
|
|
tools BUILD_TOOLS
|
2020-11-07 05:20:47 +08:00
|
|
|
)
|
|
|
|
|
2021-11-05 15:24:45 +08:00
|
|
|
vcpkg_cmake_configure(
|
2023-03-02 09:13:56 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-11-05 15:24:45 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2023-04-03 11:54:56 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DBUILD_TOOLS=OFF
|
|
|
|
-DBUILD_APP=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
OPTIONS
|
2020-11-07 05:20:47 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2023-04-03 11:54:56 +08:00
|
|
|
-DBUILD_AS_BUNDLE=OFF
|
2020-11-07 05:20:47 +08:00
|
|
|
-DBUILD_EXAMPLES=OFF
|
2024-04-02 04:32:08 +08:00
|
|
|
-DRTABMAP_QT_VERSION=6
|
|
|
|
"-DRTABMAP_RES_TOOL=${CURRENT_HOST_INSTALLED_DIR}/tools/rtabmap-res-tool/rtabmap-res_tool${VCPKG_TARGET_EXECUTABLE_SUFFIX}"
|
|
|
|
-DWITH_ALICE_VISION=OFF
|
|
|
|
-DWITH_CCCORELIB=OFF
|
|
|
|
-DWITH_CERES=ON
|
|
|
|
-DWITH_CPUTSDF=OFF
|
|
|
|
-DWITH_CVSBA=OFF
|
|
|
|
-DWITH_DC1394=OFF
|
|
|
|
-DWITH_DEPTHAI=OFF
|
|
|
|
-DWITH_DVO=OFF
|
|
|
|
-DWITH_FASTCV=OFF
|
|
|
|
-DWITH_FLYCAPTURE2=OFF
|
|
|
|
-DWITH_FOVIS=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_FREENECT=OFF
|
|
|
|
-DWITH_FREENECT2=OFF
|
2023-04-03 11:54:56 +08:00
|
|
|
-DWITH_G2O=ON
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_GTSAM=OFF
|
2024-04-02 04:32:08 +08:00
|
|
|
-DWITH_K4A=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_LOAM=OFF
|
2024-04-02 04:32:08 +08:00
|
|
|
-DWITH_MADGWICK=OFF
|
|
|
|
-DWITH_MSCKF_VIO=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_MYNTEYE=OFF
|
|
|
|
-DWITH_OKVIS=OFF
|
2024-04-02 04:32:08 +08:00
|
|
|
-DWITH_OPENCHISEL=OFF
|
2022-01-18 14:54:54 +08:00
|
|
|
-DWITH_OPENVINS=OFF
|
2024-04-02 04:32:08 +08:00
|
|
|
-DWITH_ORB_OCTREE=ON # GPLv3
|
|
|
|
-DWITH_ORB_SLAM=OFF
|
|
|
|
-DWITH_PDAL=OFF
|
|
|
|
-DWITH_POINTMATCHER=OFF
|
|
|
|
-DWITH_PYTHON_THREADING=OFF
|
|
|
|
-DWITH_PYTHON=OFF
|
|
|
|
-DWITH_REALSENSE_SLAM=OFF
|
|
|
|
-DWITH_REALSENSE=OFF
|
|
|
|
-DWITH_TORCH=OFF
|
|
|
|
-DWITH_VERTIGO=OFF
|
|
|
|
-DWITH_VINS=OFF
|
|
|
|
-DWITH_VISO2=OFF
|
|
|
|
-DWITH_ZED=OFF
|
|
|
|
-DWITH_ZEDOC=OFF
|
2020-11-04 14:51:43 +08:00
|
|
|
)
|
|
|
|
|
2021-11-05 15:24:45 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-03-02 09:13:56 +08:00
|
|
|
|
2024-04-02 04:32:08 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
|
|
|
|
else()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/rtabmap-0.21)
|
|
|
|
endif()
|
2023-04-03 11:54:56 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-11-04 14:51:43 +08:00
|
|
|
|
2020-11-07 05:20:47 +08:00
|
|
|
if("tools" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(
|
2020-11-04 14:51:43 +08:00
|
|
|
TOOL_NAMES
|
|
|
|
rtabmap-camera
|
|
|
|
rtabmap-console
|
|
|
|
rtabmap-detectMoreLoopClosures
|
|
|
|
rtabmap-export
|
|
|
|
rtabmap-extractObject
|
|
|
|
rtabmap-info
|
|
|
|
rtabmap-kitti_dataset
|
|
|
|
rtabmap-recovery
|
|
|
|
rtabmap-report
|
|
|
|
rtabmap-reprocess
|
|
|
|
rtabmap-rgbd_dataset
|
2020-11-07 05:20:47 +08:00
|
|
|
rtabmap-euroc_dataset
|
2023-01-25 09:06:22 +08:00
|
|
|
rtabmap-cleanupLocalGrids
|
|
|
|
rtabmap-globalBundleAdjustment
|
2020-11-04 14:51:43 +08:00
|
|
|
AUTO_CLEAN
|
2020-11-07 05:20:47 +08:00
|
|
|
)
|
2023-04-03 11:54:56 +08:00
|
|
|
if("gui" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(
|
|
|
|
TOOL_NAMES
|
|
|
|
rtabmap
|
|
|
|
rtabmap-calibration
|
|
|
|
rtabmap-databaseViewer
|
|
|
|
rtabmap-dataRecorder
|
|
|
|
rtabmap-odometryViewer
|
|
|
|
rtabmap-rgbd_camera
|
|
|
|
AUTO_CLEAN
|
|
|
|
)
|
2023-04-27 03:10:56 +08:00
|
|
|
file(COPY "${CURRENT_INSTALLED_DIR}/tools/Qt6/bin/qt.conf" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/qt.conf" "./../../../" "./../../")
|
2023-04-03 11:54:56 +08:00
|
|
|
endif()
|
|
|
|
endif()
|
2020-11-04 14:51:43 +08:00
|
|
|
|
2024-04-02 04:32:08 +08:00
|
|
|
vcpkg_install_copyright(
|
|
|
|
COMMENT [[
|
|
|
|
The RTAB-Map main license is BSD-3-Clause, but some parts of the
|
|
|
|
source code are under other licenses possibly including GPL-3.0-only.
|
|
|
|
]]
|
|
|
|
FILE_LIST "${SOURCE_PATH}/LICENSE"
|
|
|
|
)
|