vcpkg/ports/asio-grpc/portfile.cmake
2024-11-27 13:50:14 -08:00

25 lines
721 B
CMake

set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Tradias/asio-grpc
REF "v${VERSION}"
SHA512 477ce61e4f1f6baed2f95d49f8d67572f1c88fb98e76006ac82ef02c633d8121d01b835b5da1cbac183e3154b3dcd9a3f9307601a108a5e8b7b902dab4a65a10
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}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")