vcpkg/ports/winreg/portfile.cmake

16 lines
537 B
CMake
Raw Normal View History

# WinReg - Header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO GiovanniDicanio/WinReg
REF "v${VERSION}"
SHA512 2117f5f2a869b3623e77d9ff86b95349c37db593ae5c205e85fb6afd430d018befe9cfdb87d1f7fdd8feab37fbb7b1b91ad435cf36115893653e045ecbb42310
HEAD_REF master
)
# Copy the single reusable library header
file(COPY "${SOURCE_PATH}/WinReg/WinReg.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
# Handle copyright
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")