vcpkg/ports/picosha2/portfile.cmake
2018-06-15 22:16:58 -07:00

12 lines
500 B
CMake

include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO okdshin/PicoSHA2
REF 0c1fb895e745f386e919740700e1f5c2340f0cf5
SHA512 6105e9d276d8e2ce9cade3955eaa27fe9a17b9af18031f656baf724c7e4d903b17feb731e6ca29e567f60473c366745937b4bc89562dc4500b329a0a7acf5268
HEAD_REF master
)
file(INSTALL ${SOURCE_PATH}/picosha2.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/picosha2 RENAME copyright)