aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/project
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/project')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/project/CMakeLists.txt11
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-rest-rpc/project/main.cpp9
2 files changed, 20 insertions, 0 deletions
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;
+}