vcpkg/ports/cpp-httplib/portfile.cmake

14 lines
547 B
CMake
Raw Normal View History

# Header-only library
2019-06-27 01:41:48 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO yhirose/cpp-httplib
REF 8e10d4e8e7febafce0632810262e81e853b2065f #v0.11.2
SHA512 a213edb3f24c3147879b0500df2baf8819ac39c7943ee01bf096fbae512b81694c1b7805cfae15918ef5820ee10316de268e71c3fe25d1f8cfb39dd384678f1c
2019-06-27 01:41:48 +08:00
HEAD_REF master
)
file(COPY "${SOURCE_PATH}/httplib.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
2019-06-27 01:41:48 +08:00
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)