2020-06-24 05:26:53 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO reo7sp/tgbot-cpp
|
2023-10-31 05:38:19 +08:00
|
|
|
REF v1.7.2
|
|
|
|
SHA512 44f16e2cef6ea6407f6a707885734cd0e850d89553a35c12b63c0864ea952377f07553c9cbf5ee464a1e8390723cd9fff867caafa725c97612a664d13ca87ec1
|
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)
|