mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 01:49:07 +08:00
34 lines
952 B
CMake
34 lines
952 B
CMake
set(VCPKG_BUILD_TYPE release) #header-only
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO redboltz/async_mqtt
|
|
REF "${VERSION}"
|
|
SHA512 0bcb0bc3a08329a11ebe3efee4f919efc7bb8192373efd924f29f63c3bc7ca3ddd2c6e669f5800baf2fb3c5d67ae423e89cc802275d088848da83b2f343f7318
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
tls ASYNC_MQTT_USE_TLS
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-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")
|