vcpkg/ports/uwebsockets/portfile.cmake
2024-09-27 11:37:48 -04:00

14 lines
528 B
CMake

# header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO uNetworking/uWebSockets
REF "v${VERSION}"
SHA512 5af17616f10656404a8db6cadc187ae363efb2f579947771898d1901a6c0cc9c4297c8f0c4c05885c624cb8af6f4ee2305649094eedbb603ef0110d22b136b88
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")