vcpkg/ports/uwebsockets/portfile.cmake
2023-07-17 13:06:27 -07:00

14 lines
528 B
CMake

# header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO uNetworking/uWebSockets
REF "v${VERSION}"
SHA512 38022fc555a89654828d872ef2b4ef3a6b01e8eccfe511cb8df37dff772c6c09b379933da73606970ac8581333b3be26ad7b0a8cdec8d19fe05b326fbf4f6c84
HEAD_REF master
)
file(COPY "${SOURCE_PATH}/src" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
file(RENAME "${CURRENT_PACKAGES_DIR}/include/src" "${CURRENT_PACKAGES_DIR}/include/uwebsockets")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")