diff options
Diffstat (limited to 'vcpkg/ports/cpp-smtpclient-library')
| -rw-r--r-- | vcpkg/ports/cpp-smtpclient-library/portfile.cmake | 24 | ||||
| -rw-r--r-- | vcpkg/ports/cpp-smtpclient-library/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/cpp-smtpclient-library/vcpkg.json | 19 |
3 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/cpp-smtpclient-library/portfile.cmake b/vcpkg/ports/cpp-smtpclient-library/portfile.cmake new file mode 100644 index 0000000..eaad3b5 --- /dev/null +++ b/vcpkg/ports/cpp-smtpclient-library/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO jeremydumais/CPP-SMTPClient-library + REF "v${VERSION}" + SHA512 1f1b28519e9cc4c37746dcb083ac00180ef249cffd60feb8f13365c9655b2c66f4c05c46e5fd7953254a20d4708eb1e80ea883a205411554ae23f5709935f901 + HEAD_REF master +) + +# Configure with explicit install dirs to avoid absolute /smtpclient +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DCMAKE_INSTALL_INCLUDEDIR=include # must be initialized + -DBUILD_TESTING=OFF # avoid gtest download/build in vcpkg +) +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME "smtpclient" CONFIG_PATH "lib/cmake/smtpclient") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/smtpclient/cpp/example") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/cpp-smtpclient-library/usage b/vcpkg/ports/cpp-smtpclient-library/usage new file mode 100644 index 0000000..789e9ba --- /dev/null +++ b/vcpkg/ports/cpp-smtpclient-library/usage @@ -0,0 +1,4 @@ +cpp-smtpclient-library provides CMake targets: + + find_package(smtpclient CONFIG REQUIRED) + target_link_libraries(main PRIVATE smtpclient::smtpclient) diff --git a/vcpkg/ports/cpp-smtpclient-library/vcpkg.json b/vcpkg/ports/cpp-smtpclient-library/vcpkg.json new file mode 100644 index 0000000..32cb064 --- /dev/null +++ b/vcpkg/ports/cpp-smtpclient-library/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "cpp-smtpclient-library", + "version": "1.1.13", + "description": "An SMTP client library built in C++ that support authentication and secure connections", + "homepage": "https://github.com/jeremydumais/CPP-SMTPClient-library", + "license": "MIT AND Zlib", + "supports": "!uwp", + "dependencies": [ + "openssl", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |