diff --git a/ports/pmp-library/portfile.cmake b/ports/pmp-library/portfile.cmake new file mode 100644 index 00000000000000..f6526e1f526048 --- /dev/null +++ b/ports/pmp-library/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO pmp-library/pmp-library + REF "${VERSION}" + SHA512 8ee6f731619b92ad3d555b96c9e486446a4b9b3871992b389f9a55a0d07ca9f69cb4e03c1dc1c986357fc5a06ad60b2657ee0d58a78cb5da3c8f5692fb4c8b0f + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DPMP_BUILD_EXAMPLES=OFF + -DPMP_BUILD_TESTS=OFF + -DPMP_BUILD_DOCS=OFF + -DPMP_BUILD_VIS=OFF + -DPMP_STRICT_COMPILATION=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/pmp" PACKAGE_NAME pmp) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") diff --git a/ports/pmp-library/vcpkg.json b/ports/pmp-library/vcpkg.json new file mode 100644 index 00000000000000..0ef7c63a3d009b --- /dev/null +++ b/ports/pmp-library/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "pmp-library", + "version": "3.0.0", + "description": "The Polygon Mesh Processing Library", + "homepage": "https://github.com/pmp-library/pmp-library", + "license": "MIT", + "supports": "!xbox", + "dependencies": [ + "eigen3", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 0b2287bea5907d..09f73e2e464dd1 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6688,6 +6688,10 @@ "baseline": "1.12.0", "port-version": 2 }, + "pmp-library": { + "baseline": "3.0.0", + "port-version": 0 + }, "pngpp": { "baseline": "0.2.10", "port-version": 2 diff --git a/versions/p-/pmp-library.json b/versions/p-/pmp-library.json new file mode 100644 index 00000000000000..6195479b42d6e4 --- /dev/null +++ b/versions/p-/pmp-library.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "33881ff54702d1e4d2d35ba545953a4044294b22", + "version": "3.0.0", + "port-version": 0 + } + ] +}