diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2019-11-22 09:10:36 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-22 09:10:36 -0800 |
| commit | 0741eae0fe4a941a968df4c445866c89ca1d876f (patch) | |
| tree | ad1b3345565ff368a53ee6ef66404ed0cc2339ef | |
| parent | 329f9eb39e4cab17d23208116dc4f94fb8c9e43f (diff) | |
| parent | cc340299890d976361f3f8c5e746557ee55257dd (diff) | |
| download | vcpkg-0741eae0fe4a941a968df4c445866c89ca1d876f.tar.gz vcpkg-0741eae0fe4a941a968df4c445866c89ca1d876f.zip | |
Merge pull request #8962 from AlvinZhangH/dev/alvin/8784
[nanoflann] Add new port
| -rw-r--r-- | ports/nanoflann/CONTROL | 4 | ||||
| -rw-r--r-- | ports/nanoflann/portfile.cmake | 19 |
2 files changed, 23 insertions, 0 deletions
diff --git a/ports/nanoflann/CONTROL b/ports/nanoflann/CONTROL new file mode 100644 index 000000000..efdc648cf --- /dev/null +++ b/ports/nanoflann/CONTROL @@ -0,0 +1,4 @@ +Source: nanoflann +Version: 1.3.1 +Homepage: https://github.com/jlblancoc/nanoflann +Description: nanoflann is a C++11 header-only library for building KD-Trees of datasets with different topologies: R2, R3 (point clouds), SO(2) and SO(3) (2D and 3D rotation groups).
\ No newline at end of file diff --git a/ports/nanoflann/portfile.cmake b/ports/nanoflann/portfile.cmake new file mode 100644 index 000000000..20c372cd1 --- /dev/null +++ b/ports/nanoflann/portfile.cmake @@ -0,0 +1,19 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO jlblancoc/nanoflann + REF e8792e464ab05267216acde8b4ddf301714176a2 #1.3.1 + SHA512 78a04d39b418b6c6582e6d4180958bb0b492547a9662026da07a8b75d7186140bc4d6b50b6eece32db0196607cfcc901aaf4b458e9ab8a9a115b569acc2bae40 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA +) + +vcpkg_install_cmake() +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT} TARGET_PATH share/${PORT}) + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
\ No newline at end of file |
