2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2018-08-06 20:04:51 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO OctoMap/octomap
|
2023-11-15 04:47:15 +08:00
|
|
|
REF "v${VERSION}"
|
2024-04-03 03:42:49 +08:00
|
|
|
SHA512 1cbee4f6b3569587986774447ad9ec4190f597310c4d6865ffa7cd8865ece2492e4a42fa369b633d9d7a9da782560d49deaa62a18601ea4f56396bdf1a6a5f52
|
|
|
|
HEAD_REF devel
|
2019-05-03 13:57:43 +08:00
|
|
|
PATCHES
|
2023-09-20 00:54:29 +08:00
|
|
|
001-fix-exported-targets.patch
|
2024-04-03 03:42:49 +08:00
|
|
|
fix-isnan.patch # Remove this patch in the next update
|
2017-03-29 19:18:28 +08:00
|
|
|
)
|
|
|
|
|
2022-09-03 01:37:33 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-04-06 00:38:26 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2018-08-06 20:04:51 +08:00
|
|
|
OPTIONS
|
2020-05-22 02:25:51 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
2018-08-06 20:04:51 +08:00
|
|
|
-DBUILD_OCTOVIS_SUBPROJECT=OFF
|
|
|
|
-DBUILD_DYNAMICETD3D_SUBPROJECT=OFF
|
2017-03-29 19:18:28 +08:00
|
|
|
)
|
|
|
|
|
2022-09-03 01:37:33 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-03-29 19:18:28 +08:00
|
|
|
|
2022-09-03 01:37:33 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-03-29 19:18:28 +08:00
|
|
|
|
2020-05-22 02:25:51 +08:00
|
|
|
vcpkg_copy_tools(
|
|
|
|
TOOL_NAMES binvox2bt bt2vrml compare_octrees convert_octree edit_octree eval_octree_accuracy graph2tree log2graph
|
|
|
|
AUTO_CLEAN)
|
2017-03-29 19:18:28 +08:00
|
|
|
|
2022-09-03 01:37:33 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2019-05-03 13:57:43 +08:00
|
|
|
|
2022-09-03 01:37:33 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2017-03-29 19:18:28 +08:00
|
|
|
|
2019-05-03 13:57:43 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
2022-09-03 01:37:33 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2019-05-03 13:57:43 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/octomap")
|
2017-03-29 19:18:28 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-09-20 00:54:29 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/octomap/LICENSE.txt")
|
2017-03-30 02:07:24 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|