2022-12-30 03:05:22 +08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
|
|
|
|
2022-11-12 01:06:09 +08:00
|
|
|
# header-only library
|
2018-03-08 06:21:52 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-05-03 04:53:28 +08:00
|
|
|
REPO uNetworking/uWebSockets
|
2022-12-30 03:05:22 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 c560723aed1cdbf176a24afc5a7b07bc6fa462e713b282a466eb4d53e4127948a565750c8eae29b8b7f90f7276f69185a0597bcee2479f17b8852c5a09d2fc58
|
2018-03-08 06:21:52 +08:00
|
|
|
HEAD_REF master
|
2016-12-06 23:39:57 +08:00
|
|
|
)
|
|
|
|
|
2021-09-08 23:02:56 +08:00
|
|
|
file(COPY "${SOURCE_PATH}/src" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/include/src" "${CURRENT_PACKAGES_DIR}/include/uwebsockets")
|
2016-12-06 23:39:57 +08:00
|
|
|
|
2022-11-30 03:51:14 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|