aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/CMakeLists.txt9
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/main.cxx10
2 files changed, 19 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/CMakeLists.txt
new file mode 100644
index 0000000..9a09081
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/CMakeLists.txt
@@ -0,0 +1,9 @@
+cmake_minimum_required(VERSION 3.30)
+project(uwebsockets-test CXX)
+
+find_package(unofficial-uwebsockets CONFIG REQUIRED)
+
+add_executable(main main.cxx)
+target_link_libraries(main PRIVATE
+ $<TARGET_NAME:unofficial::uwebsockets::uwebsockets>
+)
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/main.cxx b/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/main.cxx
new file mode 100644
index 0000000..1c64685
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/main.cxx
@@ -0,0 +1,10 @@
+#include <string>
+#include <uwebsockets/App.h>
+
+int main()
+{
+ uWS::App().get("/hello", [](auto *res, auto *req) {
+ res->end("Hello World!");
+ });
+ return 0;
+}