mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 05:19:01 +08:00
28 lines
821 B
CMake
28 lines
821 B
CMake
set(VCPKG_BUILD_TYPE release) #header-only
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO redboltz/async_mqtt
|
|
REF "${VERSION}"
|
|
SHA512 e790f59a28ac7f841b0a3320fc11ecf705a6e800526f990a81ec7d290c1db0bfe83a0d879ba997f890e658dbe2d6cb30f89e7e9e28dc96b7494a96986f689747
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
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")
|