2017-02-03 10:49:50 +08:00
|
|
|
#header-only library
|
|
|
|
include(vcpkg_common_functions)
|
2018-03-03 04:28:34 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO zaphoyd/websocketpp
|
2018-10-27 01:25:35 +08:00
|
|
|
REF 0.8.1
|
|
|
|
SHA512 35e0261ed0285acf77d300768819bd380197de8acdf68223e2d7598481b9bfd69cb1653b435139771b1db6c16530c8d8cf9a887a8a6bba3fea126d0da4dbc13c
|
2018-03-03 04:28:34 +08:00
|
|
|
HEAD_REF master
|
2017-10-07 09:32:59 +08:00
|
|
|
PATCHES
|
2018-10-18 07:27:28 +08:00
|
|
|
openssl_110.patch
|
2017-10-07 09:32:59 +08:00
|
|
|
)
|
|
|
|
|
2018-03-03 04:28:34 +08:00
|
|
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/websocketpp)
|
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")
|
|
|
|
set(WEBSOCKETPP_VERSION 0.8.1)
|
|
|
|
set(PACKAGE_INIT "
|
|
|
|
macro(set_and_check)
|
|
|
|
set(\${ARGV})
|
|
|
|
endmacro()
|
|
|
|
")
|
2018-03-03 04:28:34 +08:00
|
|
|
configure_file(${SOURCE_PATH}/websocketpp-config.cmake.in "${CURRENT_PACKAGES_DIR}/share/websocketpp/websocketpp-config.cmake" @ONLY)
|
2018-10-27 01:25:35 +08:00
|
|
|
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/websocketpp/copyright COPYONLY)
|