diff options
Diffstat (limited to 'vcpkg/ports/cxxopts')
| -rw-r--r-- | vcpkg/ports/cxxopts/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/cxxopts/vcpkg.json | 18 |
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/cxxopts/portfile.cmake b/vcpkg/ports/cxxopts/portfile.cmake new file mode 100644 index 0000000..4f17511 --- /dev/null +++ b/vcpkg/ports/cxxopts/portfile.cmake @@ -0,0 +1,25 @@ +set(VCPKG_BUILD_TYPE release) # header-only + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO jarro2783/cxxopts + REF "v${VERSION}" + SHA512 a22da1436a263d51aad2f542c2099f5b4fd1b02674716ff26d2f575786dcec4e97400edebf5577de95f3ae48c7c99be7be17d7a3de3e01a9f3612667e1547908 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DCXXOPTS_BUILD_EXAMPLES=OFF + -DCXXOPTS_BUILD_TESTS=OFF + -DCXXOPTS_ENABLE_WARNINGS=OFF + -DCXXOPTS_CMAKE_DIR=share/cxxopts +) +vcpkg_cmake_install() +vcpkg_cmake_config_fixup() +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/cxxopts/vcpkg.json b/vcpkg/ports/cxxopts/vcpkg.json new file mode 100644 index 0000000..5b3c1d9 --- /dev/null +++ b/vcpkg/ports/cxxopts/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "cxxopts", + "version-semver": "3.3.1", + "port-version": 1, + "description": "A lightweight C++ option parser library, supporting the standard GNU style syntax for options", + "homepage": "https://github.com/jarro2783/cxxopts", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |