2023-06-15 11:36:35 +09:00
|
|
|
set(VCPKG_BUILD_TYPE release) #header-only
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO redboltz/async_mqtt
|
|
|
|
REF "${VERSION}"
|
2024-10-15 05:28:08 +09:00
|
|
|
SHA512 cf76113f9fc3999c83781ca8213dbaa18edb5f4c081366b25ed1581cb955f8dfd562175bbd6ba5c127e560d5f9a0e013e42185211a4de77e76cdd44b279873a6
|
2023-06-15 11:36:35 +09:00
|
|
|
HEAD_REF main
|
|
|
|
)
|
|
|
|
|
2023-07-24 18:44:07 +00:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
tls ASYNC_MQTT_USE_TLS
|
|
|
|
)
|
|
|
|
|
2023-06-15 11:36:35 +09:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2023-07-24 18:44:07 +00:00
|
|
|
${FEATURE_OPTIONS}
|
2023-06-15 11:36:35 +09: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")
|