2020-01-23 03:57:21 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO redboltz/mqtt_cpp
|
2022-06-14 10:07:14 +08:00
|
|
|
REF v13.0.0
|
|
|
|
SHA512
|
|
|
|
2f0c85ac813cc6c99cc5b1ca02514ee6643abc39750bce541a362d1fcd281b8b9011cc39ddeaf4394fd3772904eed15e8ecbe6b3839caad13cae2b04201e682b
|
2020-01-23 03:57:21 +08:00
|
|
|
HEAD_REF master
|
2022-06-14 10:07:14 +08:00
|
|
|
)
|
2020-01-23 03:57:21 +08:00
|
|
|
|
2021-11-16 08:32:11 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-01-23 03:57:21 +08:00
|
|
|
OPTIONS
|
2022-06-14 10:07:14 +08:00
|
|
|
-DMQTT_BUILD_EXAMPLES=OFF
|
|
|
|
-DMQTT_BUILD_TESTS=OFF
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
|
|
|
)
|
2020-01-23 03:57:21 +08:00
|
|
|
|
2021-11-16 08:32:11 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-02-04 06:22:52 +08:00
|
|
|
|
2022-06-14 10:07:14 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME mqtt_cpp_iface CONFIG_PATH lib/cmake/mqtt_cpp_iface)
|
2021-03-25 04:19:20 +08:00
|
|
|
|
2021-11-16 08:32:11 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2022-06-14 10:07:14 +08:00
|
|
|
file(
|
|
|
|
INSTALL "${SOURCE_PATH}/LICENSE_1_0.txt"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
|
|
|
RENAME copyright)
|