diff options
Diffstat (limited to 'vcpkg/ports/mqtt-cpp')
| -rw-r--r-- | vcpkg/ports/mqtt-cpp/portfile.cmake | 24 | ||||
| -rw-r--r-- | vcpkg/ports/mqtt-cpp/vcpkg.json | 22 |
2 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/mqtt-cpp/portfile.cmake b/vcpkg/ports/mqtt-cpp/portfile.cmake new file mode 100644 index 0000000..8e47a2f --- /dev/null +++ b/vcpkg/ports/mqtt-cpp/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO redboltz/mqtt_cpp + REF v${VERSION} + SHA512 + a237c08ff741c9b85e30f476f0a6d4d67d6720f66d68ac49253ff463e4675f89d0d6b69038a9dfd5814694e48f24af735dee57aa66215c5e0d3279c688878b2f + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DMQTT_BUILD_EXAMPLES=OFF + -DMQTT_BUILD_TESTS=OFF + -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME mqtt_cpp_iface CONFIG_PATH lib/cmake/mqtt_cpp_iface) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt") diff --git a/vcpkg/ports/mqtt-cpp/vcpkg.json b/vcpkg/ports/mqtt-cpp/vcpkg.json new file mode 100644 index 0000000..29982de --- /dev/null +++ b/vcpkg/ports/mqtt-cpp/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "mqtt-cpp", + "version-semver": "13.2.2", + "description": "Header-only MQTT client/server for C++14 based on Boost.Asio.", + "homepage": "https://github.com/redboltz/mqtt_cpp", + "license": "BSL-1.0", + "dependencies": [ + "boost-any", + "boost-asio", + "boost-multi-index", + "boost-program-options", + "boost-type-erasure", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |