2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
|
2018-05-03 13:38:08 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO treehopper-electronics/treehopper-sdk
|
2023-12-22 08:11:21 +08:00
|
|
|
REF "${VERSION}"
|
2018-05-03 13:38:08 +08:00
|
|
|
SHA512 65b748375b798787c8b59f9657151f340920c939c3f079105b9b78f4e3b775125598106c6dfa4feba111a64d30f007003a70110ac767802a7dd1127a25c9fb14
|
2023-12-22 08:11:21 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-dependences.patch
|
|
|
|
)
|
2018-05-03 13:38:08 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/C++/API/"
|
2018-05-03 13:38:08 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-05-03 13:38:08 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2018-05-03 13:38:08 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-07-30 02:22:12 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/C++/API/inc/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/Treehopper/")
|
2023-12-22 08:11:21 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|