mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 17:59:08 +08:00
5b2d824a2e
* [vcpkg baseline][rtabmap] Fix dependency issue when build tools * Format vcpkg.json * Fix copy tools
90 lines
2.3 KiB
CMake
90 lines
2.3 KiB
CMake
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO introlab/rtabmap
|
|
REF 0a9d237ac2968463d36c4c9b4436871a6c3ea0ca # 0.20.3
|
|
SHA512 47438eb07e4687855e89664479644b93f826da722c3556c30ed4b1a51cecb41494582d3ae3337ff4e0925f6db7ebf74fe29871bf930bb2eb51f5198090ac8554
|
|
HEAD_REF master
|
|
PATCHES
|
|
001_opencv.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
tools BUILD_TOOLS
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DBUILD_APP=OFF
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DWITH_QT=OFF
|
|
-DWITH_SUPERPOINT_TORCH=OFF
|
|
-DWITH_PYMATCHER=OFF
|
|
-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
|
|
-DWITH_LOAM=OFF
|
|
-DWITH_FLYCAPTURE2=OFF
|
|
-DWITH_ZED=OFF
|
|
-DWITH_REALSENSE=OFF
|
|
-DWITH_REALSENSE_SLAM=OFF
|
|
-DWITH_REALSENSE2=OFF
|
|
-DWITH_MYNTEYE=OFF
|
|
-DWITH_OCTOMAP=OFF
|
|
-DWITH_CPUTSDF=OFF
|
|
-DWITH_OPENCHISEL=OFF
|
|
-DWITH_ALICE_VISION=OFF
|
|
-DWITH_FOVIS=OFF
|
|
-DWITH_VISO2=OFF
|
|
-DWITH_DVO=OFF
|
|
-DWITH_ORB_SLAM2=OFF
|
|
-DWITH_OKVIS=OFF
|
|
-DWITH_MSCKF_VIO=OFF
|
|
-DWITH_VINS=OFF
|
|
-DWITH_FASTCV=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES rtabmap-res_tool AUTO_CLEAN)
|
|
|
|
if("tools" IN_LIST FEATURES)
|
|
vcpkg_copy_tools(
|
|
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
|
|
rtabmap-euroc_dataset
|
|
AUTO_CLEAN
|
|
)
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
)
|
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|