2023-02-01 05:27:53 +08:00
|
|
|
# header-only library
|
2019-06-07 09:58:40 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mateidavid/zstr
|
2023-02-01 05:27:53 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 3017da244810a45f7111f76f8d0dd988e162f08eab28b7465cad4549d84200fc834975275daf9588d35c6125e6f167c1e2dd5ec18022dac1eceabdc24d24cffe
|
2019-06-07 09:58:40 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
# Install source files
|
2023-02-01 05:27:53 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/src/strict_fstream.hpp"
|
|
|
|
"${SOURCE_PATH}/src/zstr.hpp"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
2019-06-07 09:58:40 +08:00
|
|
|
|
|
|
|
# Install license
|
2023-02-01 05:27:53 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2021-11-10 03:51:17 +08:00
|
|
|
|
|
|
|
# Install usage
|
2023-02-01 05:27:53 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|