mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 22:48:00 +08:00
17 lines
604 B
CMake
17 lines
604 B
CMake
#header-only library
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO yhirose/cpp-peglib
|
|
REF "v${VERSION}"
|
|
SHA512 89fe1112a5db1decde65aa989a74559222b02c897a0f6a3facca295f07467e232c787420243b50786da21f86bc100a869b46963f09051aebade0bb44d2b12800
|
|
HEAD_REF master
|
|
)
|
|
|
|
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)
|
|
|