diff options
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc')
4 files changed, 36 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/portfile.cmake new file mode 100644 index 0000000..bc78596 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/portfile.cmake @@ -0,0 +1,4 @@ +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-rest-rpc/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/project/CMakeLists.txt new file mode 100644 index 0000000..13a2678 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/project/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.7) +project(soci-test CXX) + +if(APPLE) + set(CMAKE_CXX_STANDARD 11) +endif() + +add_executable(main main.cpp) + +find_package(unofficial-rest-rpc CONFIG REQUIRED) +target_link_libraries(main unofficial::rest-rpc::rest-rpc) diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/project/main.cpp b/vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/project/main.cpp new file mode 100644 index 0000000..4165c75 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/project/main.cpp @@ -0,0 +1,9 @@ +#include <rest_rpc.hpp> + +int main() +{ + rest_rpc::rpc_client client("127.0.0.1", 8080); + client.connect(); + client.run(); + return 0; +} diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/vcpkg.json new file mode 100644 index 0000000..814d21d --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "vcpkg-ci-rest-rpc", + "version-string": "ci", + "description": "Validates rest-rpc", + "dependencies": [ + "rest-rpc", + { + "name": "vcpkg-cmake", + "host": true + } + ] +} |