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 89fe1112a5db1decde65aa989a74559222b02c897a0f6a3facca295f07467e232c787420243b50786da21f86bc100a869b46963f09051aebade0bb44d2b12800
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