2023-06-15 10:36:35 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) #header-only
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO redboltz/async_mqtt
|
|
|
|
REF "${VERSION}"
|
2024-04-05 02:02:05 +08:00
|
|
|
SHA512 f9ad4d27d0d34dd1d8256a44d40dec82d171d68f0574a0dfa97342247d09430e55f205c241068c65787be2c5b4c154f410d9c9a1c39e3347b6e299b3656a8811
|
2023-06-15 10:36:35 +08:00
|
|
|
HEAD_REF main
|
|
|
|
)
|
|
|
|
|
2023-07-25 02:44:07 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
tls ASYNC_MQTT_USE_TLS
|
|
|
|
)
|
|
|
|
|
2023-06-15 10:36:35 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2023-07-25 02:44:07 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2023-06-15 10:36:35 +08:00
|
|
|
-DASYNC_MQTT_BUILD_TOOLS=OFF
|
|
|
|
-DASYNC_MQTT_BUILD_EXAMPLES=OFF
|
|
|
|
-DASYNC_MQTT_BUILD_UNIT_TESTS=OFF
|
|
|
|
-DASYNC_MQTT_BUILD_SYSTEM_TESTS=OFF
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME async_mqtt_iface CONFIG_PATH "lib/cmake/async_mqtt_iface")
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|