vcpkg/ports/cpp-httplib/portfile.cmake

17 lines
510 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 v0.7.0
SHA512 4ffbeb6672dec5f3704d6c3da09acf0e1984b5c7c68455f7fb030a7457bc64983665498015f2372d8a85da02be1750bab03dae956653297ac8efef67ff682854
2019-06-27 01:41:48 +08:00
HEAD_REF master
)
file(
COPY ${SOURCE_PATH}/httplib.h
DESTINATION ${CURRENT_PACKAGES_DIR}/include
)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)