vcpkg/ports/cpp-peglib/portfile.cmake

17 lines
604 B
CMake
Raw Normal View History

2019-07-16 02:21:20 +08:00
#header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO yhirose/cpp-peglib
2023-10-03 11:49:56 +08:00
REF "v${VERSION}"
SHA512 c579da831822459c643c43be64eded925b2364bc1ae6b99ab8eaeeb48f441ecc2c019b08313027fd12113a1356826c7570d0c8b1b0ea7eef6984d810903b92c4
HEAD_REF master
)
2019-07-16 02:21:20 +08:00
file(COPY "${SOURCE_PATH}/peglib.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/cpp-peglib" RENAME copyright)
2019-07-16 02:21:20 +08:00