2017-02-03 10:49:50 +08:00
|
|
|
#header-only library
|
2018-03-03 04:28:34 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO zaphoyd/websocketpp
|
2020-04-25 03:57:24 +08:00
|
|
|
REF 56123c87598f8b1dd471be83ca841ceae07f95ba # 0.8.2
|
|
|
|
SHA512 f185a66e5a7c783254352a6ef87e2e559f681032b7368765d08393ed12bcae76825abed7dcaea73de09df644320409dad46279701f5f469520542a2c9b6a6163
|
2018-03-03 04:28:34 +08:00
|
|
|
HEAD_REF master
|
2022-03-22 04:23:49 +08:00
|
|
|
PATCHES
|
|
|
|
cxx20.patch
|
2017-10-07 09:32:59 +08:00
|
|
|
)
|
|
|
|
|
2020-04-25 03:57:24 +08:00
|
|
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
2017-02-03 10:49:50 +08:00
|
|
|
|
|
|
|
# Copy the header files
|
|
|
|
file(COPY "${SOURCE_PATH}/websocketpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN "*.hpp")
|
|
|
|
|
2018-10-27 01:25:35 +08:00
|
|
|
set(PACKAGE_INSTALL_INCLUDE_DIR "\${CMAKE_CURRENT_LIST_DIR}/../../include")
|
2020-04-25 03:57:24 +08:00
|
|
|
set(WEBSOCKETPP_VERSION 0.8.2)
|
2018-10-27 01:25:35 +08:00
|
|
|
set(PACKAGE_INIT "
|
|
|
|
macro(set_and_check)
|
|
|
|
set(\${ARGV})
|
|
|
|
endmacro()
|
|
|
|
")
|
2020-04-25 03:57:24 +08:00
|
|
|
configure_file(${SOURCE_PATH}/websocketpp-config.cmake.in "${CURRENT_PACKAGES_DIR}/share/${PORT}/websocketpp-config.cmake" @ONLY)
|
|
|
|
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|