mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
a67ba7075c
* [arg-router] Add new port https://github.com/cmannett85/arg_router * [arg-router] Use VERSION CMake var * [arg_router] Do not copy README and LICENSE to share dir * Add quotes. --------- Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
32 lines
920 B
CMake
32 lines
920 B
CMake
set(ARCHIVE_NAME "arg_router-${VERSION}.zip")
|
|
|
|
vcpkg_download_distfile(
|
|
ARCHIVE
|
|
URLS "https://github.com/cmannett85/arg_router/releases/download/v${VERSION}/${ARCHIVE_NAME}"
|
|
FILENAME "${ARCHIVE_NAME}"
|
|
SHA512 9cb75dafbdcbc02c774d5dcf17af126b7b1fc032b10cc0a2b5075897fbb80cdb0b84b631d265295210c3a7bdae682065f417d8ca70937118de97f14ed46bd31b
|
|
)
|
|
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH
|
|
ARCHIVE "${ARCHIVE}"
|
|
)
|
|
|
|
file(
|
|
COPY "${SOURCE_PATH}/include/arg_router/arg_router-config.cmake"
|
|
"${SOURCE_PATH}/include/arg_router/arg_router-config-version.cmake"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/arg_router"
|
|
)
|
|
file(
|
|
COPY "${SOURCE_PATH}/include"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}"
|
|
)
|
|
file(
|
|
COPY "${CMAKE_CURRENT_LIST_DIR}/usage"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
|
)
|
|
|
|
vcpkg_install_copyright(
|
|
FILE_LIST "${SOURCE_PATH}/include/arg_router/LICENSE"
|
|
)
|