mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 12:48:01 +08:00
[small-gicp] New port (#39393)
This commit is contained in:
parent
53c42cb317
commit
85782ff108
25
ports/small-gicp/disable_openmp_osx.patch
Normal file
25
ports/small-gicp/disable_openmp_osx.patch
Normal 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)
|
30
ports/small-gicp/portfile.cmake
Normal file
30
ports/small-gicp/portfile.cmake
Normal 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
4
ports/small-gicp/usage
Normal file
@ -0,0 +1,4 @@
|
||||
small-gicp provides CMake targets:
|
||||
|
||||
find_package(small_gicp REQUIRED)
|
||||
target_link_libraries(main PRIVATE small_gicp::small_gicp)
|
33
ports/small-gicp/vcpkg.json
Normal file
33
ports/small-gicp/vcpkg.json
Normal 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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
|
9
versions/s-/small-gicp.json
Normal file
9
versions/s-/small-gicp.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "580a9b893d2996aceb7ed24d6fcb0bc2111f0553",
|
||||
"version": "0.1.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user