2020-06-24 05:26:53 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO reo7sp/tgbot-cpp
|
2023-01-24 16:34:35 +08:00
|
|
|
REF v1.6
|
|
|
|
SHA512 c7dd9efb1b0edfe34de06205ed26ad076d0e61a48be22df440290478ab55917c7d926af0ea7d1c76b82b5859f4f2454217feb6dc5b7c7680e6f6177f063242a0
|
2020-06-24 05:26:53 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-04-07 05:30:48 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-06-24 05:26:53 +08:00
|
|
|
)
|
|
|
|
|
2022-04-07 05:30:48 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-06-24 05:26:53 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Handle copyright
|
2023-01-24 16:34:35 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST ${SOURCE_PATH}/LICENSE)
|