forked from cory/tildefriends
libuv 1.44.2
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3934 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
51
deps/libuv/docs/code/CMakeLists.txt
vendored
Normal file
51
deps/libuv/docs/code/CMakeLists.txt
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
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)
|
Reference in New Issue
Block a user