diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client | |
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client')
4 files changed, 31 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client/portfile.cmake new file mode 100644 index 0000000..8a2079b --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client/portfile.cmake @@ -0,0 +1,5 @@ +set(VCPKG_POLICY_EMPTY_PACKAGE enabled) +vcpkg_cmake_configure( + SOURCE_PATH "${CURRENT_PORT_DIR}/project" +) +vcpkg_cmake_build() diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client/project/CMakeLists.txt new file mode 100644 index 0000000..2a289ef --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client/project/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 3.28)
+project(yandex-disk-cpp-client-test LANGUAGES CXX)
+set(CMAKE_CXX_STANDARD 17)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+find_package(yandex-disk-cpp-client CONFIG REQUIRED)
+add_executable(main main.cpp)
+target_link_libraries(main PRIVATE yandex-disk-cpp-client::yandex-disk-cpp-client)
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client/project/main.cpp b/vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client/project/main.cpp new file mode 100644 index 0000000..0b2f175 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client/project/main.cpp @@ -0,0 +1,7 @@ +#include <YandexDiskClient.h>
+int main()
+{
+ YandexDiskClient yandex("TOKEN");
+ auto quota = yandex.getQuotaInfo();
+ return 0;
+}
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client/vcpkg.json new file mode 100644 index 0000000..1d92df2 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-yandex-disk-cpp-client/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "vcpkg-ci-yandex-disk-cpp-client", + "version-string": "ci", + "description": "Validates yandex-disk-cpp-client", + "dependencies": [ + "yandex-disk-cpp-client", + { + "name": "vcpkg-cmake", + "host": true + } + ] +} |