File tree Expand file tree Collapse file tree 5 files changed +60
-0
lines changed
ports/cpp-smtpclient-library Expand file tree Collapse file tree 5 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ vcpkg_from_github(
2+ OUT_SOURCE_PATH SOURCE_PATH
3+ REPO jeremydumais/CPP-SMTPClient-library
4+ REF "v${VERSION} "
5+ SHA512 1f1b28519e9cc4c37746dcb083ac00180ef249cffd60feb8f13365c9655b2c66f4c05c46e5fd7953254a20d4708eb1e80ea883a205411554ae23f5709935f901
6+ HEAD_REF master
7+ )
8+
9+ # Configure with explicit install dirs to avoid absolute /smtpclient
10+ vcpkg_cmake_configure(
11+ SOURCE_PATH "${SOURCE_PATH} "
12+ OPTIONS
13+ -DCMAKE_INSTALL_INCLUDEDIR=include # must be initialized
14+ -DBUILD_TESTING=OFF # avoid gtest download/build in vcpkg
15+ )
16+ vcpkg_cmake_install()
17+
18+ vcpkg_cmake_config_fixup(PACKAGE_NAME "smtpclient" CONFIG_PATH "lib/cmake/smtpclient" )
19+
20+ file (REMOVE_RECURSE "${CURRENT_PACKAGES_DIR} /debug/include" )
21+ file (REMOVE_RECURSE "${CURRENT_PACKAGES_DIR} /include/smtpclient/cpp/example" )
22+
23+ file (INSTALL "${CMAKE_CURRENT_LIST_DIR} /usage" DESTINATION "${CURRENT_PACKAGES_DIR} /share/${PORT} " )
24+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH} /LICENSE" )
Original file line number Diff line number Diff line change 1+ cpp-smtpclient-library provides CMake targets:
2+
3+ find_package(smtpclient CONFIG REQUIRED)
4+ target_link_libraries(main PRIVATE smtpclient::smtpclient)
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " cpp-smtpclient-library" ,
3+ "version" : " 1.1.13" ,
4+ "description" : " An SMTP client library built in C++ that support authentication and secure connections" ,
5+ "homepage" : " https://github.com/jeremydumais/CPP-SMTPClient-library" ,
6+ "license" : " MIT AND Zlib" ,
7+ "supports" : " !uwp" ,
8+ "dependencies" : [
9+ " openssl" ,
10+ {
11+ "name" : " vcpkg-cmake" ,
12+ "host" : true
13+ },
14+ {
15+ "name" : " vcpkg-cmake-config" ,
16+ "host" : true
17+ }
18+ ]
19+ }
Original file line number Diff line number Diff line change 20242024 "baseline" : " 4.3.1" ,
20252025 "port-version" : 5
20262026 },
2027+ "cpp-smtpclient-library" : {
2028+ "baseline" : " 1.1.13" ,
2029+ "port-version" : 0
2030+ },
20272031 "cpp-sort" : {
20282032 "baseline" : " 2.0.0" ,
20292033 "port-version" : 0
Original file line number Diff line number Diff line change 1+ {
2+ "versions" : [
3+ {
4+ "git-tree" : " 3901222e417fcc4beec6d627908ed9308ed02e76" ,
5+ "version" : " 1.1.13" ,
6+ "port-version" : 0
7+ }
8+ ]
9+ }
You can’t perform that action at this time.
0 commit comments