2023-01-17 07:52:05 +11:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
|
|
|
|
2020-11-03 22:51:43 -08:00
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO introlab/rtabmap
|
2023-01-17 07:52:05 +11:00
|
|
|
REF v${VERSION}
|
|
|
|
SHA512 6128fa483c1ebda5a9a211f144d930ed107d0fbcc2b47c2aeace1b54f363cdabab2ef472ff20c8b2030ca067936f032714b07320488892b6424fc068dcccf280
|
2020-11-03 22:51:43 -08:00
|
|
|
HEAD_REF master
|
2021-11-05 03:24:45 -04:00
|
|
|
PATCHES
|
2022-02-10 18:06:26 +00:00
|
|
|
0001-add-bigobj-for-msvc.patch
|
2023-01-17 07:52:05 +11:00
|
|
|
0002-fix-opencv47.patch
|
2022-08-05 02:21:59 +02:00
|
|
|
0003-fix-qt.patch
|
2020-11-03 22:51:43 -08:00
|
|
|
)
|
|
|
|
|
2020-11-07 05:20:47 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-11-05 03:24:45 -04:00
|
|
|
FEATURES
|
|
|
|
tools BUILD_TOOLS
|
2020-11-07 05:20:47 +08:00
|
|
|
)
|
|
|
|
|
2021-11-05 03:24:45 -04:00
|
|
|
vcpkg_cmake_configure(
|
2020-11-03 22:51:43 -08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2021-11-05 03:24:45 -04:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2020-11-06 02:08:51 +08:00
|
|
|
OPTIONS
|
2020-11-07 05:20:47 +08:00
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DBUILD_APP=OFF
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_QT=OFF
|
2022-01-18 14:54:54 +08:00
|
|
|
-DWITH_ORB_OCTREE=OFF
|
|
|
|
-DWITH_TORCH=OFF
|
|
|
|
-DWITH_PYTHON=OFF
|
|
|
|
-DWITH_PYTHON_THREADING=OFF
|
|
|
|
-DWITH_PDAL=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_FREENECT=OFF
|
|
|
|
-DWITH_FREENECT2=OFF
|
|
|
|
-DWITH_K4W2=OFF
|
|
|
|
-DWITH_K4A=OFF
|
|
|
|
-DWITH_OPENNI2=OFF
|
|
|
|
-DWITH_DC1394=OFF
|
|
|
|
-DWITH_G2O=OFF
|
|
|
|
-DWITH_GTSAM=OFF
|
|
|
|
-DWITH_CERES=OFF
|
|
|
|
-DWITH_VERTIGO=OFF
|
|
|
|
-DWITH_CVSBA=OFF
|
|
|
|
-DWITH_POINTMATCHER=OFF
|
2022-01-18 14:54:54 +08:00
|
|
|
-DWITH_CCCORELIB=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_LOAM=OFF
|
|
|
|
-DWITH_FLYCAPTURE2=OFF
|
|
|
|
-DWITH_ZED=OFF
|
2022-01-18 14:54:54 +08:00
|
|
|
-DWITH_ZEDOC=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_REALSENSE=OFF
|
|
|
|
-DWITH_REALSENSE_SLAM=OFF
|
|
|
|
-DWITH_REALSENSE2=OFF
|
|
|
|
-DWITH_MYNTEYE=OFF
|
2022-01-18 14:54:54 +08:00
|
|
|
-DWITH_DEPTHAI=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_OCTOMAP=OFF
|
|
|
|
-DWITH_CPUTSDF=OFF
|
|
|
|
-DWITH_OPENCHISEL=OFF
|
|
|
|
-DWITH_ALICE_VISION=OFF
|
|
|
|
-DWITH_FOVIS=OFF
|
|
|
|
-DWITH_VISO2=OFF
|
|
|
|
-DWITH_DVO=OFF
|
|
|
|
-DWITH_OKVIS=OFF
|
|
|
|
-DWITH_MSCKF_VIO=OFF
|
|
|
|
-DWITH_VINS=OFF
|
2022-01-18 14:54:54 +08:00
|
|
|
-DWITH_OPENVINS=OFF
|
|
|
|
-DWITH_MADGWICK=OFF
|
2020-11-06 02:08:51 +08:00
|
|
|
-DWITH_FASTCV=OFF
|
2020-11-03 22:51:43 -08:00
|
|
|
)
|
|
|
|
|
2021-11-05 03:24:45 -04:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
2020-11-03 22:51:43 -08:00
|
|
|
|
2020-11-07 05:20:47 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES rtabmap-res_tool AUTO_CLEAN)
|
|
|
|
|
|
|
|
if("tools" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(
|
2020-11-03 22: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
|
2020-11-03 22:51:43 -08:00
|
|
|
AUTO_CLEAN
|
2020-11-07 05:20:47 +08:00
|
|
|
)
|
|
|
|
endif()
|
2020-11-03 22:51:43 -08:00
|
|
|
|
2022-08-05 02:21:59 +02:00
|
|
|
file(REMOVE_RECURSE
|
2020-11-03 22:51:43 -08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
|
|
)
|
|
|
|
|
2020-11-06 02:08:51 +08:00
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|