2019-08-17 03:02:14 +08:00
|
|
|
set(VERSION 2_1_25)
|
|
|
|
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "http://download.tinkerforge.com/bindings/c/tinkerforge_c_bindings_${VERSION}.zip"
|
|
|
|
FILENAME "tinkerforge-${VERSION}.zip"
|
|
|
|
SHA512 c02b789bd466803d60aeb39a544b0aa17af811377b065a0b273bcfc15c5844f8cfe981d8143743e32bd05470c2c6af297df50924da0d2895a4cdf4bc9e9bd0b8
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
|
|
|
ARCHIVE "${ARCHIVE}"
|
|
|
|
SOURCE_BASE "tinker-${VERSION}"
|
2019-08-17 03:02:14 +08:00
|
|
|
NO_REMOVE_ONE_LEVEL
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/tinkerforgeConfig.cmake.in" DESTINATION "${SOURCE_PATH}")
|
2019-08-17 03:02:14 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-08-17 03:02:14 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2019-08-17 03:02:14 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2023-03-02 02:39:29 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
2019-08-17 03:02:14 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2019-08-17 03:02:14 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|