vcpkg/ports/asio-grpc/portfile.cmake

23 lines
674 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Tradias/asio-grpc
REF "v${VERSION}"
SHA512 2377fe49acc320ad16150420348a09c89308d96451f7e4974874862f927dfd60651ca04b038ca6e467b104986f3723bbd67243032790a994aa1a50c510193d4d
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DASIO_GRPC_CMAKE_CONFIG_INSTALL_DIR=share/asio-grpc
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
2022-10-22 06:33:35 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")