2016-12-06 23:39:57 +08:00
|
|
|
include(vcpkg_common_functions)
|
2018-03-08 06:21:52 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO uWebSockets/uWebSockets
|
2018-04-22 21:38:55 +08:00
|
|
|
REF v0.14.8
|
|
|
|
SHA512 5e78e2f10e95648ad1e7f26612f69da3bbdcdb3f17c99e3bb9775e3eb440a2741f05375dcc043b43f0f2d4de6da54e7534431c5c10c1350103a4379b55cf9081
|
2018-03-08 06:21:52 +08:00
|
|
|
HEAD_REF master
|
2016-12-06 23:39:57 +08:00
|
|
|
)
|
|
|
|
|
2017-03-24 13:34:22 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2016-12-06 23:39:57 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-03-24 13:34:22 +08:00
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DINSTALL_HEADERS=OFF
|
2016-12-06 23:39:57 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/uwebsockets)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/uwebsockets/LICENSE ${CURRENT_PACKAGES_DIR}/share/uwebsockets/copyright)
|
2017-03-24 13:34:22 +08:00
|
|
|
|
2016-12-06 23:39:57 +08:00
|
|
|
vcpkg_copy_pdbs()
|