diff options
Diffstat (limited to 'vcpkg/ports/units')
| -rw-r--r-- | vcpkg/ports/units/portfile.cmake | 19 | ||||
| -rw-r--r-- | vcpkg/ports/units/vcpkg.json | 17 |
2 files changed, 36 insertions, 0 deletions
diff --git a/vcpkg/ports/units/portfile.cmake b/vcpkg/ports/units/portfile.cmake new file mode 100644 index 0000000..71ed2b3 --- /dev/null +++ b/vcpkg/ports/units/portfile.cmake @@ -0,0 +1,19 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO nholthaus/units + REF v${VERSION} + SHA512 75014265c1c327a95638ca4ae10021f6e5218db1c932bac222c50b8dfe14a3135eb360083491a3437fafd10b621d8b0ff82213602d905bc5244bbe24dd915a14 +) + +set(VCPKG_BUILD_TYPE "release") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DUNITS_BUILD_TESTS=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH share/units/cmake) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/units/vcpkg.json b/vcpkg/ports/units/vcpkg.json new file mode 100644 index 0000000..122edf1 --- /dev/null +++ b/vcpkg/ports/units/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "units", + "version": "3.1.1", + "description": "A compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies.", + "homepage": "https://github.com/nholthaus/units", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |