view third_party/libuv/docs/code/CMakeLists.txt @ 279:b3b547563ec7

Add Google connector service and agent wiki Implement the C/Seobeo Google Drive and Gmail connector with encrypted OAuth storage, Zenbu authentication, browser testing, AI tool discovery, chunked HTTP decoding, and Bazel coverage. Consolidate repository guidance into progressive wiki documentation and enforce arena-first allocation for new first-party C code. Co-authored-by: Copilot <[email protected]> Copilot-Session: 84c338fd-0939-4bb3-b7f3-1062eb213e5d
author MrJuneJune <me@mrjunejune.com>
date Mon, 17 Aug 2026 22:22:36 -0700
parents 948de3f54cea
children
line wrap: on
line source

cmake_minimum_required(VERSION 3.5)

project(libuv_sample)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

add_subdirectory("../../" build)

set(SIMPLE_SAMPLES
        cgi
        helloworld
        dns
        detach
        default-loop
        idle-basic
        idle-compute
        interfaces
        locks
        onchange
        pipe-echo-server
        ref-timer
        spawn
        tcp-echo-server
        thread-create
        udp-dhcp
        uvcat
        uvstop
        uvtee
        )
IF (NOT WIN32)
    list(APPEND SIMPLE_SAMPLES
            signal
            progress
            queue-cancel
            queue-work
            tty
            tty-gravity
            )
ENDIF()

foreach (X IN LISTS SIMPLE_SAMPLES)
    add_executable(${X} ${X}/main.c)
    target_link_libraries(${X} uv_a)
endforeach ()


FIND_PACKAGE(CURL)
IF(CURL_FOUND)
    add_executable(uvwget uvwget/main.c)
    target_link_libraries(uvwget uv_a ${CURL_LIBRARIES})
ENDIF(CURL_FOUND)