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-uwebsockets/project | |
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project')
| -rw-r--r-- | vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/CMakeLists.txt | 9 | ||||
| -rw-r--r-- | vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/main.cxx | 10 |
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; +} |