[small-gicp] New port (#39393)

This commit is contained in:
Andre Nguyen 2024-06-27 00:26:53 -04:00 committed by GitHub
parent 53c42cb317
commit 85782ff108
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 105 additions and 0 deletions

View File

@ -0,0 +1,25 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ec14eea..f83d678 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,11 +55,15 @@ if(NOT Eigen3_FOUND)
)
endif()
-if(BUILD_WITH_OPENMP STREQUAL "auto")
- find_package(OpenMP)
- set(BUILD_WITH_OPENMP ${OpenMP_FOUND})
-elseif(BUILD_WITH_OPENMP)
- find_package(OpenMP REQUIRED)
+if(APPLE)
+ set(BUILD_WITH_OPENMP FALSE)
+else()
+ if(BUILD_WITH_OPENMP STREQUAL "auto")
+ find_package(OpenMP)
+ set(BUILD_WITH_OPENMP ${OpenMP_FOUND})
+ elseif(BUILD_WITH_OPENMP)
+ find_package(OpenMP REQUIRED)
+ endif()
endif()
if (BUILD_WITH_TBB)

View File

@ -0,0 +1,30 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO koide3/small_gicp
REF "v${VERSION}"
SHA512 bdd0d1e39d25877e58b2753addbad082f2fdf3962809fe646cab8ba63438eff05e2276afb2803aaed0a3905e0251208e2faaf8c1c416b551ffbdd54b9743ddb6
HEAD_REF master
PATCHES disable_openmp_osx.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
pcl BUILD_WITH_PCL
tbb BUILD_WITH_TBB
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(
PACKAGE_NAME small_gicp
CONFIG_PATH lib/cmake/small_gicp
)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/small-gicp/usage Normal file
View File

@ -0,0 +1,4 @@
small-gicp provides CMake targets:
find_package(small_gicp REQUIRED)
target_link_libraries(main PRIVATE small_gicp::small_gicp)

View File

@ -0,0 +1,33 @@
{
"name": "small-gicp",
"version": "0.1.0",
"description": "Efficient and parallelized algorithms for point cloud registration",
"homepage": "https://github.com/koide3/small_gicp",
"license": "MIT",
"supports": "!(x86 | arm32)",
"dependencies": [
"eigen3",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"pcl": {
"description": "Enable interfacing with PointCloud Library.",
"dependencies": [
"pcl"
]
},
"tbb": {
"description": "Enable Intel TBB based parallelism.",
"dependencies": [
"tbb"
]
}
}
}

View File

@ -8236,6 +8236,10 @@
"baseline": "2.4.0",
"port-version": 3
},
"small-gicp": {
"baseline": "0.1.0",
"port-version": 0
},
"smf": {
"baseline": "0.1.1",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "580a9b893d2996aceb7ed24d6fcb0bc2111f0553",
"version": "0.1.0",
"port-version": 0
}
]
}