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}"
2024-09-18 06:34:44 +08:00
SHA512 084e2770a6f73a66a90b43bae0f2c372c1767ca975e2ca2581f38b1828c3587bcfe400868cb5710b7546b499e516040fe33145a2c4098c15de11d384f6377bf4
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